JS: fix KT-37386
Anonymous object constructor parameters should not reuse JsName's of the super class. Otherwise the temporary name renamer gets confused.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// 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
|
||||
Reference in New Issue
Block a user