File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/printing Expand file tree Collapse file tree 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 {
284284 then toText(parent)
285285 else toTextCapturing(parent, refs, boxText)
286286 case tp @ RetainingType (parent, refsType) =>
287- val refs = refsType.retainedElements
287+ val refs = refsType.retainedElementsRaw
288288 if Feature .ccEnabledSomewhere then
289289 toTextCapturing(parent, refs.map(r => ast.tpd.TypeTree (r)), " " ) ~ Str (" R" ).provided(printDebug)
290290 else toText(parent)
@@ -311,8 +311,8 @@ class PlainPrinter(_ctx: Context) extends Printer {
311311 case ExprType (restp) =>
312312 def arrowText : Text = restp match
313313 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 (" =>" )
316316 case refs => Str (" ->" ) ~ toTextRetainedElems(refs.map(r => ast.tpd.TypeTree (r)))
317317 case _ =>
318318 if Feature .pureFunsEnabled then " ->" else " =>"
You can’t perform that action at this time.
0 commit comments