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:
Anton Bannykh
2020-03-10 23:31:53 +03:00
parent 182c1cee05
commit 63a909dee6
4 changed files with 23 additions and 5 deletions
@@ -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