Files
kotlin-fork/compiler/testData/codegen/box/regressions/kt3903.kt
T
2019-11-19 11:00:09 +03:00

13 lines
197 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
class Foo {
fun bar(): String {
fun <T> foo(t:() -> T) : T = t()
foo { }
return "OK"
}
}
fun box(): String {
return Foo().bar()
}