Files
kotlin/compiler/testData/codegen/box/closures/capturedLocalGenericFun.kt
2019-11-19 11:00:09 +03:00

15 lines
226 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
fun box() : String {
fun <T> local(s : T) : T {
return s;
}
fun test(s : Int) : Int {
return local(s)
}
if (test(10) != 10) return "fail1"
return "OK"
}