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 9aa7991 commit e375b0bCopy full SHA for e375b0b
compiler/src/dotty/tools/dotc/typer/Checking.scala
@@ -716,7 +716,7 @@ trait Checking {
716
def checkImplicitConversionUseOK(sym: Symbol, posd: Positioned)(implicit ctx: Context): Unit =
717
if (sym.exists) {
718
val conv =
719
- if (sym.isOneOf(GivenOrImplicit)) sym
+ if (sym.isOneOf(GivenOrImplicit) || sym.info.isErroneous) sym
720
else {
721
assert(sym.name == nme.apply)
722
sym.owner
tests/neg/i7750.scala
@@ -0,0 +1,3 @@
1
+package object A extends runtime.A {
2
+ implicit def a( : ) = 1() // error // error // error
3
+}
0 commit comments