Files
kotlin-fork/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt2212.kt
T

9 lines
222 B
Kotlin
Vendored

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