Offer to make INVISIBLE_MEMBER protected if referenced from subclass
So #KT-19614 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
0adf1d210f
commit
f0f6a252a5
+15
@@ -0,0 +1,15 @@
|
||||
// "Make 'doSth' protected" "false"
|
||||
// ACTION: Make 'doSth' public
|
||||
// ACTION: Make 'doSth' internal
|
||||
// ERROR: Cannot access 'doSth': it is private in 'A'
|
||||
|
||||
class A {
|
||||
private fun doSth() {
|
||||
}
|
||||
}
|
||||
|
||||
class B {
|
||||
fun bar() {
|
||||
A().<caret>doSth()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user