We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55f07c4 commit 4ca61ffCopy full SHA for 4ca61ff
compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -3983,7 +3983,7 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
3983
def newExpr =
3984
val qual = (tree: @unchecked) match
3985
case Select(qual, nme.apply) => qual
3986
- case Ident(nme.apply) => This(tree.symbol.owner.asClass).withSpan(tree.span)
+ case tree @ Ident(nme.apply) => tpd.desugarIdentPrefix(tree)
3987
val tycon = tree.tpe.widen.finalResultType.underlyingClassRef(refinementOK = false)
3988
val tpt = qual match
3989
case Ident(name) =>
0 commit comments