Skip to content

Commit 4ca61ff

Browse files
oderskysmarter
andauthored
Update compiler/src/dotty/tools/dotc/typer/Typer.scala
Co-authored-by: Guillaume Martres <smarter@ubuntu.com>
1 parent 55f07c4 commit 4ca61ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/typer/Typer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3983,7 +3983,7 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
39833983
def newExpr =
39843984
val qual = (tree: @unchecked) match
39853985
case Select(qual, nme.apply) => qual
3986-
case Ident(nme.apply) => This(tree.symbol.owner.asClass).withSpan(tree.span)
3986+
case tree @ Ident(nme.apply) => tpd.desugarIdentPrefix(tree)
39873987
val tycon = tree.tpe.widen.finalResultType.underlyingClassRef(refinementOK = false)
39883988
val tpt = qual match
39893989
case Ident(name) =>

0 commit comments

Comments
 (0)