Files
kotlin-fork/compiler/testData/diagnostics/tests/constructorConsistency/nobacking.kt
T

13 lines
168 B
Kotlin
Vendored

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