Files
kotlin-fork/compiler/testData/diagnostics/tests/controlFlowAnalysis/privateSetter.fir.kt
T

17 lines
227 B
Kotlin
Vendored

open class X(s : String) {
public var n: String = s
private set
}
class Z : X("subclass") {
fun print(): String {
n = n
return n;
}
}
fun box() : String {
return Z().print() //error
}