Files
kotlin-fork/compiler/testData/codegen/box/properties/kt3556.kt
T
2018-06-09 19:15:38 +03:00

12 lines
212 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
class Test {
val a : String = "1"
private val b : String get() = a
fun outer() : Int {
return b.length
}
}
fun box() = if (Test().outer() == 1) "OK" else "fail"