Files
kotlin-fork/compiler/testData/diagnostics/tests/scopes/invisibleSetter.kt
T
2021-10-03 17:10:06 +03:00

10 lines
149 B
Kotlin
Vendored

// FIR_IDENTICAL
class A<T> {
public var x: Int = 0
private set
}
fun main() {
val a = A<Any>()
<!INVISIBLE_SETTER!>a.x<!> = 1
}