File tree 1 file changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/printing
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -284,7 +284,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
284
284
then toText(parent)
285
285
else toTextCapturing(parent, refs, boxText)
286
286
case tp @ RetainingType (parent, refsType) =>
287
- val refs = refsType.retainedElements
287
+ val refs = refsType.retainedElementsRaw
288
288
if Feature .ccEnabledSomewhere then
289
289
toTextCapturing(parent, refs.map(r => ast.tpd.TypeTree (r)), " " ) ~ Str (" R" ).provided(printDebug)
290
290
else toText(parent)
@@ -311,8 +311,8 @@ class PlainPrinter(_ctx: Context) extends Printer {
311
311
case ExprType (restp) =>
312
312
def arrowText : Text = restp match
313
313
case AnnotatedType (parent, ann) if ann.symbol == defn.RetainsByNameAnnot =>
314
- ann.tree.retainedSet.retainedElements match
315
- case ref :: Nil if ref.isCap => Str (" =>" )
314
+ ann.tree.retainedSet.retainedElementsRaw match
315
+ case ( ref : CaptureRef ) :: Nil if ref.isCap => Str (" =>" )
316
316
case refs => Str (" ->" ) ~ toTextRetainedElems(refs.map(r => ast.tpd.TypeTree (r)))
317
317
case _ =>
318
318
if Feature .pureFunsEnabled then " ->" else " =>"
You can’t perform that action at this time.
0 commit comments