Files
kotlin-fork/compiler/testData/diagnostics/tests/nullabilityAndAutoCasts/kt2212.kt
T
2013-12-11 19:53:50 +04:00

9 lines
240 B
Kotlin

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