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 d98c3ba commit 55e65caCopy full SHA for 55e65ca
compiler/src/dotty/tools/dotc/typer/Applications.scala
@@ -941,6 +941,8 @@ trait Applications extends Compatibility { self: Typer with Dynamic =>
941
val Apply(qual, args) = tree
942
943
def notAnExtractor(tree: Tree) =
944
+ // prefer inner errors
945
+ // e.g. report not found ident instead of not an extractor in tests/neg/i2950.scala
946
if (!tree.tpe.isError && tree.tpe.isErroneous) tree
947
else errorTree(tree, NotAnExtractor(qual))
948
0 commit comments