File tree 2 files changed +3
-4
lines changed
compiler/src/dotty/tools/dotc
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -266,7 +266,6 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
266
266
(" {" ~ toText(trees, " \n " ) ~ " }" ).close
267
267
268
268
protected def typeApplyText [T >: Untyped ](tree : TypeApply [T ]): Text = {
269
- val isQuote = ! printDebug && tree.fun.hasType && tree.fun.symbol == defn.QuotedTypeModule_apply
270
269
val funText = toTextLocal(tree.fun)
271
270
tree.fun match {
272
271
case Select (New (tpt), nme.CONSTRUCTOR ) if tpt.typeOpt.dealias.isInstanceOf [AppliedType ] =>
Original file line number Diff line number Diff line change @@ -176,9 +176,9 @@ class PCPCheckAndHeal(@constructorOnly ictx: Context) extends TreeMapWithStages(
176
176
case tp : TypeRef =>
177
177
tp.prefix match
178
178
case NoPrefix if level > levelOf(tp.symbol) && ! tp.typeSymbol.hasAnnotation(defn.InternalQuoted_QuoteTypeTagAnnot ) =>
179
- val tp1 = tp.dealias
180
- if tp1 != tp then apply(tp1 )
181
- else tryHeal(tp.symbol, tp, pos )
179
+ tp.dealias match
180
+ case `tp` => tryHeal(tp.symbol, tp, pos )
181
+ case tp1 => apply(tp1 )
182
182
case prefix : ThisType if ! tp.symbol.isStatic && level > levelOf(prefix.cls) =>
183
183
tryHeal(tp.symbol, tp, pos)
184
184
case prefix : TermRef if tp.symbol.isTypeSplice =>
You can’t perform that action at this time.
0 commit comments