Move: Do not report conflict on usages of inherited protected members
#KT-15190 Fixed
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
package a
|
||||
|
||||
open class ProtectedParent {
|
||||
protected open fun inherit() {}
|
||||
}
|
||||
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package b
|
||||
|
||||
import a.ProtectedParent
|
||||
|
||||
class ProtectedChild : ProtectedParent() {
|
||||
fun foo() {
|
||||
this.inherit()
|
||||
inherit()
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
package a
|
||||
|
||||
open class ProtectedParent {
|
||||
protected open fun inherit() {}
|
||||
}
|
||||
|
||||
class <caret>ProtectedChild : ProtectedParent() {
|
||||
fun foo() {
|
||||
this.inherit()
|
||||
inherit()
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"mainFile": "a/test.kt",
|
||||
"type": "MOVE_KOTLIN_TOP_LEVEL_DECLARATIONS",
|
||||
"targetPackage": "b"
|
||||
}
|
||||
Reference in New Issue
Block a user