Files
kotlin-fork/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt2212.kt
T
2014-10-01 18:52:52 +04:00

9 lines
241 B
Kotlin
Vendored

//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_SMARTCAST!>x<!>.plus(x<!UNNECESSARY_NOT_NULL_ASSERTION!>!!<!>))
}