Skip to content

Commit 1136f21

Browse files
committed
Add regression test for #6655
Fixed by 2b52368 in #10014
1 parent 97da3cb commit 1136f21

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/pos/i6655.scala

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
class Test {
2+
def foo(): Unit = {
3+
val x: String|Null = ???
4+
if (x != null) {
5+
val y = x.length
6+
} else {
7+
val y = x
8+
}
9+
}
10+
}

0 commit comments

Comments
 (0)