Skip to content

Commit 20fee6d

Browse files
authored
Merge pull request #3648 from dotty-staging/fix-#2730
Fix #2730: Add regression test
2 parents 18f56fe + 3a5c300 commit 20fee6d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/neg/i2730.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: Unit = {
3+
val x = iDontExist(32) // error: not found: iDontExist
4+
val y = x
5+
x + x
6+
println(x)
7+
}
8+
}

0 commit comments

Comments
 (0)