[JS IR BE] Fix private field names

This commit is contained in:
Roman Artemev
2018-10-29 18:45:06 +03:00
committed by romanart
parent bf42bd1226
commit fb709cae92
6 changed files with 1 additions and 5 deletions
@@ -135,6 +135,7 @@ class SimpleNameGenerator : NameGenerator {
} else {
nameBuilder.append('.')
nameBuilder.append(getNameForDeclaration(declaration.parent as IrDeclaration, context))
if (declaration.visibility == Visibilities.PRIVATE) nameDeclarator = context.currentScope::declareFreshName
}
}
is IrClass -> {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
interface B<T> {
val bar: T
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
package test
class C(val s : String) {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
package test
class C(val s : String) {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
class Outer {
val foo = "Foo"
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
class A {
val z: String = "OK"
}