Fixed visibility check on a property with private setter of the subclass

#KT-3689 Fixed
This commit is contained in:
Stanislav Erokhin
2016-06-21 15:24:03 +03:00
parent f607bdebd3
commit 7389d412a5
5 changed files with 58 additions and 5 deletions
@@ -0,0 +1,17 @@
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
}