Files
kotlin-fork/js/js.translator/testData/box/expression/identifierClash/privateDeclarations.kt
T

17 lines
303 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1286
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"
}