We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2d28962 + 1136f21 commit b42251eCopy full SHA for b42251e
tests/pos/i6655.scala
@@ -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