7249d2f889
* 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
11 lines
153 B
Kotlin
Vendored
11 lines
153 B
Kotlin
Vendored
fun foo() : String {
|
|
val u = {
|
|
class B(val data : String)
|
|
B("OK").data
|
|
}
|
|
return u()
|
|
}
|
|
|
|
fun box(): String {
|
|
return foo()
|
|
} |