Files
kotlin-fork/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt2212.fir.kt
T
2021-04-09 12:32:45 +03:00

9 lines
195 B
Kotlin
Vendored

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