mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 08:31:29 +00:00
* fixed NoSuchMethod caused by mismatched signatures of the "invoke" method generated for lambda arguments * added test cases in invoke.kt for KFunction and anonymous functions * added a transformer to wrap the last expression in the bodies of lambdas with return
7 lines
123 B
Kotlin
Vendored
7 lines
123 B
Kotlin
Vendored
abstract class Base(val fn: () -> String)
|
|
|
|
object Test : Base({ Test.ok() }) {
|
|
fun ok() = "OK"
|
|
}
|
|
|
|
fun box() = Test.fn() |