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.
1 parent 97da3cb commit 1136f21Copy full SHA for 1136f21
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