We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e12886e commit fe11e37Copy full SHA for fe11e37
compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -2994,7 +2994,7 @@ class Typer extends Namer
2994
SearchFailure(qual.withType(NestedFailure(ex.toMessage, selectionProto))))
2995
2996
// try an implicit conversion or given extension
2997
- if ctx.mode.is(Mode.ImplicitsEnabled) && tree.name != nme.CONSTRUCTOR && qual.tpe.isValueType then
+ if ctx.mode.is(Mode.ImplicitsEnabled) && !tree.name.isConstructorName && qual.tpe.isValueType then
2998
trace(i"try insert impl on qualifier $tree $pt") {
2999
val selProto = selectionProto
3000
inferView(qual, selProto) match
0 commit comments