Offer to make INVISIBLE_MEMBER protected if referenced from subclass

So #KT-19614 Fixed
This commit is contained in:
Toshiaki Kameyama
2017-08-17 13:06:13 +03:00
committed by Mikhail Glukhikh
parent 0adf1d210f
commit f0f6a252a5
12 changed files with 176 additions and 2 deletions
@@ -0,0 +1,15 @@
// "Make 'foo' protected" "false"
// ACTION: Make 'foo' public
// ACTION: Make 'foo' internal
// ACTION: Introduce local variable
// ERROR: Cannot access 'foo': it is private in 'A'
class A {
private val foo = 1
}
class B {
fun bar() {
A().<caret>foo
}
}