diff --git a/compiler/testData/diagnostics/tests/nullabilityAndAutoCasts/kt2212.jet b/compiler/testData/diagnostics/tests/nullabilityAndAutoCasts/kt2212.jet new file mode 100644 index 00000000000..78c93d378fe --- /dev/null +++ b/compiler/testData/diagnostics/tests/nullabilityAndAutoCasts/kt2212.jet @@ -0,0 +1,8 @@ +//KT-2212 Incomplete nullability information +package kt2212 + +fun main(args: Array) { + val x: Int? = 1 + if (x == null) return + println(x.plus(x!!)) +}