[JS IR BE] Fix private field names
This commit is contained in:
+1
@@ -135,6 +135,7 @@ class SimpleNameGenerator : NameGenerator {
|
|||||||
} else {
|
} else {
|
||||||
nameBuilder.append('.')
|
nameBuilder.append('.')
|
||||||
nameBuilder.append(getNameForDeclaration(declaration.parent as IrDeclaration, context))
|
nameBuilder.append(getNameForDeclaration(declaration.parent as IrDeclaration, context))
|
||||||
|
if (declaration.visibility == Visibilities.PRIVATE) nameDeclarator = context.currentScope::declareFreshName
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
is IrClass -> {
|
is IrClass -> {
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
interface B<T> {
|
interface B<T> {
|
||||||
val bar: T
|
val bar: T
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
package test
|
package test
|
||||||
|
|
||||||
class C(val s : String) {
|
class C(val s : String) {
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
package test
|
package test
|
||||||
|
|
||||||
class C(val s : String) {
|
class C(val s : String) {
|
||||||
|
|||||||
-1
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
class Outer {
|
class Outer {
|
||||||
val foo = "Foo"
|
val foo = "Foo"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
class A {
|
class A {
|
||||||
val z: String = "OK"
|
val z: String = "OK"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user