Files
kotlin/compiler/testData/diagnostics/tests/constructorConsistency/nobacking.kt
2016-06-03 09:45:37 +03:00

12 lines
151 B
Kotlin
Vendored

class My {
val x: Int
get() = 1
init {
// x has no backing field, so the call is safe
foo()
}
fun foo() {}
}