Skip to content

Commit b42251e

Browse files
Merge pull request #10070 from griggt/fix-#6655
Fix #6655: Add regression test
2 parents 2d28962 + 1136f21 commit b42251e

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)