Files
kotlin-fork/compiler/testData/diagnostics/tests/scopes/invisibleSetter.kt
T
Alexey Tsvetkov 7c54024a22 Fix private setter visibility for generic class
#KT-8888 fixed
2015-10-26 18:36:59 +03:00

9 lines
151 B
Kotlin
Vendored

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