Files
kotlin-fork/js/js.translator/testData/box/expression/identifierClash/privateDeclarations.kt
T
2018-04-19 13:17:28 +03:00

18 lines
328 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1114
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"
}