Sanitize names for backing fields and private declarations in JS BE
See KT-1816
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
// EXPECTED_REACHABLE_NODES: 1000
|
||||
open class A {
|
||||
private val `.` = "A"
|
||||
private val `;` = "B"
|
||||
|
||||
private fun `@`() = "C"
|
||||
private fun `#`() = "D"
|
||||
|
||||
fun foo() = `.` + `;` + `@`() + `#`()
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val x = A().foo()
|
||||
if (x != "ABCD") return "fail: $x"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user