File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1593,6 +1593,10 @@ object Types {
15931593 def isMatchedBy (tp : Type )(implicit ctx : Context ): Boolean
15941594 def fold [T ](x : T , ta : TypeAccumulator [T ])(implicit ctx : Context ): T
15951595 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+ */
15961600 def withContext (ctx : Context ): ProtoType = this
15971601 }
15981602
Original file line number Diff line number Diff line change @@ -358,7 +358,6 @@ object ProtoTypes {
358358 else new FunProto (args, resType)(typer, state)(newCtx)
359359 }
360360
361-
362361 /** A prototype for expressions that appear in function position
363362 *
364363 * [](args): resultType, where args are known to be typed
You can’t perform that action at this time.
0 commit comments