mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
22 lines
393 B
Kotlin
Vendored
22 lines
393 B
Kotlin
Vendored
fun box(): String {
|
|
var encl1 = "fail";
|
|
var encl2 = "fail";
|
|
test {
|
|
{
|
|
encl1 = "OK"
|
|
{
|
|
encl2 = "OK"
|
|
}()
|
|
}()
|
|
}
|
|
|
|
return "OK"
|
|
}
|
|
|
|
inline fun test(s: () -> Unit) {
|
|
s()
|
|
}
|
|
|
|
// 2 INNERCLASS Kt10259Kt\$box\$\$inlined\$test\$lambda\$1\s
|
|
// 2 INNERCLASS Kt10259Kt\$box\$\$inlined\$test\$lambda\$1\$1
|
|
// 4 INNERCLASS |