Skip to content

Commit 55e65ca

Browse files
authored
Add comment to code
1 parent d98c3ba commit 55e65ca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -941,6 +941,8 @@ trait Applications extends Compatibility { self: Typer with Dynamic =>
941941
val Apply(qual, args) = tree
942942

943943
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
944946
if (!tree.tpe.isError && tree.tpe.isErroneous) tree
945947
else errorTree(tree, NotAnExtractor(qual))
946948

0 commit comments

Comments
 (0)