Skip to content

Commit 1ded4f9

Browse files
authored
Merge pull request #4912 from dotty-staging/fix-#2412
Fix #2412: Add regression test
2 parents 6c33431 + baee69f commit 1ded4f9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/neg/i2412.scala

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
object Test {
2+
def test(foo: List[String]): Unit = {
3+
foo.filter(f => {
4+
iDontExist // error
5+
true
6+
})
7+
}
8+
}

0 commit comments

Comments
 (0)