Skip to content

Commit dfd3c81

Browse files
committed
Don't decorate types in New with capture sets
1 parent ef37ebf commit dfd3c81

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/src/dotty/tools/dotc/cc/Setup.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ class Setup extends PreRecheck, SymTransformer, SetupAPI:
422422
case _ =>
423423
tp
424424

425-
/** Map references to capability classes C to C^,
425+
/** Map references to capability classes C to C^{cap.rd},
426426
* normalize captures and map to dependent functions.
427427
*/
428428
def defaultApply(t: Type) =
@@ -618,6 +618,7 @@ class Setup extends PreRecheck, SymTransformer, SetupAPI:
618618
traverse(body)
619619
catches.foreach(traverse)
620620
traverse(finalizer)
621+
case tree: New =>
621622
case _ =>
622623
traverseChildren(tree)
623624
postProcess(tree)

0 commit comments

Comments
 (0)