File tree 1 file changed +4
-4
lines changed
compiler/src/dotty/tools/dotc/transform 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ import SymDenotations.SymDenotation
11
11
import cc .*
12
12
13
13
/** A denotation transformer that comes after the CheckCaptures. It resets
14
- * all CapturingTypes in the info of derived SingletonDenotations to AnnotatedTypes.
15
- * SymDenotations are left unchaged. For them, the info is already reset in
16
- * Rechecl #updateInfo.
14
+ * all CapturingTypes in the info of derived SingletonDenotations to
15
+ * regular AnnotatedTypes. SymDenotations are left unchaged. For them,
16
+ * the info is already reset in Recheck #updateInfo.
17
17
*/
18
18
class PostCapture extends Phase , InfoTransformer :
19
19
thisPhase =>
@@ -27,7 +27,7 @@ class PostCapture extends Phase, InfoTransformer:
27
27
val mapType = new TypeMap :
28
28
def apply (t : Type ) = t match
29
29
case CapturingType (parent, cs) =>
30
- AnnotatedType (this (parent), CaptureAnnotation (cs) )
30
+ AnnotatedType (this (parent), cs.toRegularAnnotation )
31
31
case _ =>
32
32
mapOver(t)
33
33
mapType(tp)
You can’t perform that action at this time.
0 commit comments