Files
kotlin-fork/compiler/testData/diagnostics/tests/controlFlowAnalysis/privateSetter.kt
T
Ivan Kochurkin afb85026c4 Revert "[FIR] Implement INVISIBLE_SETTER"
This reverts commit b3d7ed56
2021-08-02 20:10:22 +03:00

17 lines
250 B
Kotlin
Vendored

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