Files
kotlin-fork/compiler/testData/diagnostics/tests/properties/PrivateSetInSuperclass.kt
T
2023-11-10 21:51:53 +00:00

14 lines
174 B
Kotlin
Vendored

// ISSUE: KT-61101
open class A {
var x: Int = 0
private set
}
class B : A()
fun test() {
val b = B()
b<!UNREACHABLE_CODE!>.x =<!> throw Exception()
}