Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/regression/kt10001.fir.kt
T
2021-04-09 12:32:45 +03:00

10 lines
236 B
Kotlin
Vendored

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