Files
kotlin-fork/compiler/testData/diagnostics/tests/nullabilityAndAutoCasts/kt2212.jet
T
Nikolay Krasko 0d46b394f3 Fix test
2012-06-15 21:26:11 +04:00

9 lines
214 B
Plaintext

//KT-2212 Incomplete nullability information
package kt2212
fun main(args: Array<String>) {
val x: Int? = 1
if (x == null) return
System.out.println(x.plus(x<!UNNECESSARY_NOT_NULL_ASSERTION!>!!<!>))
}