Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/regression/kt10001.kt
T

11 lines
243 B
Kotlin
Vendored

// FIR_IDENTICAL
fun foo1(p: Pair<Int?, Int>): Int {
if (p.first != null) return p.first!!
return p.second
}
fun foo2(p: Pair<Int?, Int>): Int {
if (p.first != null) return <!SMARTCAST_IMPOSSIBLE!>p.first<!>
return p.second
}