diff --git a/tests/neg/i2412.scala b/tests/neg/i2412.scala new file mode 100644 index 000000000000..837e73e518b1 --- /dev/null +++ b/tests/neg/i2412.scala @@ -0,0 +1,8 @@ +object Test { + def test(foo: List[String]): Unit = { + foo.filter(f => { + iDontExist // error + true + }) + } +}