10 lines
199 B
Kotlin
Vendored
10 lines
199 B
Kotlin
Vendored
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 p.first
|
|
return p.second
|
|
}
|