Files
kotlin-fork/js/js.translator/testData/box/objectDeclaration/kt37386.kt
T
Anton Bannykh 63a909dee6 JS: fix KT-37386
Anonymous object constructor parameters should not reuse JsName's
of the super class. Otherwise the temporary name renamer gets
confused.
2020-03-11 12:15:23 +03:00

11 lines
156 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1315
fun foo() = "OK"
open class A(val foo: Boolean = true) {
val ok = foo()
}
val q = object : A() {}
fun box() = q.ok