Files
kotlin-fork/compiler/testData/codegen/box/regressions/kt3903.kt
T
2015-03-04 17:32:40 +01:00

12 lines
166 B
Kotlin

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