Files
kotlin-fork/compiler/testData/codegen/regressions/kt518.jet
T
2011-11-18 12:10:08 +02:00

15 lines
200 B
Plaintext

fun foo(i : Int?, a : Any?) {
i?.plus(1)
if (i != null) {
i + 1
if (a is String) {
a[0]
}
}
}
fun box () : String {
foo(2, "239")
return "OK"
}