File tree 2 files changed +3
-3
lines changed
compiler/src/dotty/tools/dotc
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -193,9 +193,9 @@ class PlainPrinter(_ctx: Context) extends Printer {
193
193
" <overloaded " ~ toTextRef(tp) ~ " >"
194
194
case tp : TypeRef =>
195
195
if (printWithoutPrefix.contains(tp.symbol))
196
- selectionString(tp.dealias.typeSymbol.namedType )
196
+ selectionString(tp)
197
197
else
198
- toTextPrefixOf(tp) ~ selectionString(tp.dealias.typeSymbol.namedType )
198
+ toTextPrefixOf(tp) ~ selectionString(tp)
199
199
case tp : TermParamRef =>
200
200
ParamRefNameString (tp) ~ lambdaHash(tp.binder) ~ " .type"
201
201
case tp : TypeParamRef =>
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ object Message:
88
88
def followAlias (e1 : Recorded ): Recorded = e1 match {
89
89
case e1 : Symbol if e1.isAliasType =>
90
90
val underlying = e1.typeRef.underlyingClassRef(refinementOK = false ).typeSymbol
91
- if (underlying.name == e1.name) underlying else e1
91
+ if (underlying.name == e1.name) underlying else e1.namedType.dealias.typeSymbol
92
92
case _ => e1
93
93
}
94
94
val key = SeenKey (str, isType)
You can’t perform that action at this time.
0 commit comments