Skip to content

Commit 1cc8590

Browse files
committed
Fix pretty-printing of capture variables
1 parent 22a79e2 commit 1cc8590

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
451451
homogenize(tp) match
452452
case tp: TermRef if tp.symbol == defn.captureRoot => "cap"
453453
case tp: SingletonType => toTextRef(tp)
454-
case tp: (TypeRef | TypeParamRef) => toText(tp) ~ "^"
454+
case tp: (TypeRef | TypeParamRef) => toText(tp)
455455
case ReadOnlyCapability(tp1) => toTextCaptureRef(tp1) ~ ".rd"
456456
case ReachCapability(tp1) => toTextCaptureRef(tp1) ~ "*"
457457
case MaybeCapability(tp1) => toTextCaptureRef(tp1) ~ "?"

0 commit comments

Comments
 (0)