Skip to content

Commit 2e708a1

Browse files
committed
Add doc comment
1 parent 8b21081 commit 2e708a1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

compiler/src/dotty/tools/dotc/core/Types.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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

compiler/src/dotty/tools/dotc/typer/ProtoTypes.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)