Skip to content

Commit fe11e37

Browse files
liufengyunsmarter
andauthored
Update compiler/src/dotty/tools/dotc/typer/Typer.scala
Co-authored-by: Guillaume Martres <[email protected]>
1 parent e12886e commit fe11e37

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
@@ -2994,7 +2994,7 @@ class Typer extends Namer
29942994
SearchFailure(qual.withType(NestedFailure(ex.toMessage, selectionProto))))
29952995

29962996
// try an implicit conversion or given extension
2997-
if ctx.mode.is(Mode.ImplicitsEnabled) && tree.name != nme.CONSTRUCTOR && qual.tpe.isValueType then
2997+
if ctx.mode.is(Mode.ImplicitsEnabled) && !tree.name.isConstructorName && qual.tpe.isValueType then
29982998
trace(i"try insert impl on qualifier $tree $pt") {
29992999
val selProto = selectionProto
30003000
inferView(qual, selProto) match

0 commit comments

Comments
 (0)