File tree 2 files changed +4
-1
lines changed
compiler/src/dotty/tools/dotc
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1593,6 +1593,10 @@ object Types {
1593
1593
def isMatchedBy (tp : Type )(implicit ctx : Context ): Boolean
1594
1594
def fold [T ](x : T , ta : TypeAccumulator [T ])(implicit ctx : Context ): T
1595
1595
def map (tm : TypeMap )(implicit ctx : Context ): ProtoType
1596
+
1597
+ /** If this prototype captures a context, the same prototype except that the result
1598
+ * captures the given context `ctx`.
1599
+ */
1596
1600
def withContext (ctx : Context ): ProtoType = this
1597
1601
}
1598
1602
Original file line number Diff line number Diff line change @@ -358,7 +358,6 @@ object ProtoTypes {
358
358
else new FunProto (args, resType)(typer, state)(newCtx)
359
359
}
360
360
361
-
362
361
/** A prototype for expressions that appear in function position
363
362
*
364
363
* [](args): resultType, where args are known to be typed
You can’t perform that action at this time.
0 commit comments