@@ -244,7 +244,7 @@ object ProtoTypes {
244244 * [](args): resultType
245245 */
246246 case class FunProto (args : List [untpd.Tree ], resType : Type )(typer : Typer ,
247- override val isContextual : Boolean , state : FunProtoState = new FunProtoState )(implicit val ctx : Context )
247+ val isGivenApply : Boolean , state : FunProtoState = new FunProtoState )(implicit val ctx : Context )
248248 extends UncachedGroundType with ApplyingProto with FunOrPolyProto {
249249 override def resultType (implicit ctx : Context ): Type = resType
250250
@@ -258,7 +258,7 @@ object ProtoTypes {
258258
259259 def derivedFunProto (args : List [untpd.Tree ] = this .args, resultType : Type , typer : Typer = this .typer): FunProto =
260260 if ((args eq this .args) && (resultType eq this .resultType) && (typer eq this .typer)) this
261- else new FunProto (args, resultType)(typer, isContextual )
261+ else new FunProto (args, resultType)(typer, isGivenApply )
262262
263263 override def notApplied : Type = WildcardType
264264
@@ -342,7 +342,7 @@ object ProtoTypes {
342342 case pt : FunProto =>
343343 pt
344344 case _ =>
345- state.tupled = new FunProto (untpd.Tuple (args) :: Nil , resultType)(typer, isContextual )
345+ state.tupled = new FunProto (untpd.Tuple (args) :: Nil , resultType)(typer, isGivenApply )
346346 tupled
347347 }
348348
@@ -377,14 +377,14 @@ object ProtoTypes {
377377
378378 override def withContext (newCtx : Context ): ProtoType =
379379 if (newCtx `eq` ctx) this
380- else new FunProto (args, resType)(typer, isContextual , state)(newCtx)
380+ else new FunProto (args, resType)(typer, isGivenApply , state)(newCtx)
381381 }
382382
383383 /** A prototype for expressions that appear in function position
384384 *
385385 * [](args): resultType, where args are known to be typed
386386 */
387- class FunProtoTyped (args : List [tpd.Tree ], resultType : Type )(typer : Typer , isContextual : Boolean )(implicit ctx : Context ) extends FunProto (args, resultType)(typer, isContextual )(ctx) {
387+ class FunProtoTyped (args : List [tpd.Tree ], resultType : Type )(typer : Typer , isGivenApply : Boolean )(implicit ctx : Context ) extends FunProto (args, resultType)(typer, isGivenApply )(ctx) {
388388 override def unforcedTypedArgs (implicit ctx : Context ): List [tpd.Tree ] = args
389389 override def withContext (ctx : Context ): FunProtoTyped = this
390390 }
@@ -431,7 +431,7 @@ object ProtoTypes {
431431 }
432432
433433 class UnapplyFunProto (argType : Type , typer : Typer )(implicit ctx : Context ) extends FunProto (
434- untpd.TypedSplice (dummyTreeOfType(argType)(ctx.source))(ctx) :: Nil , WildcardType )(typer, isContextual = false )
434+ untpd.TypedSplice (dummyTreeOfType(argType)(ctx.source))(ctx) :: Nil , WildcardType )(typer, isGivenApply = false )
435435
436436 /** A prototype for expressions [] that are type-parameterized:
437437 *
0 commit comments