Files
kotlin-fork/compiler/testData/codegen/box/extensionFunctions/kt23675.kt
T
Steven Schäfer efb938a7c8 (Un)mute tests
2019-07-31 11:18:44 +02:00

24 lines
447 B
Kotlin
Vendored

//WITH_RUNTIME
// IGNORE_BACKEND: JS_IR
class Environment(
val fieldAccessedInsideChild: Int,
val how: Environment.() -> Unit
)
fun box(): String {
Environment(
3,
{
class Child {
val a = fieldAccessedInsideChild
}
class Parent {
val children: List<Child> =
(0..4).map { Child() }
}
}
)
return "OK"
}