Move: Do not report conflict on usages of inherited protected members

#KT-15190 Fixed
This commit is contained in:
Alexey Sedunov
2017-03-08 01:02:15 +03:00
parent e82b256640
commit 92fbca452d
14 changed files with 88 additions and 0 deletions
@@ -0,0 +1,6 @@
package a
open class ProtectedParent {
protected open fun inherit() {}
}
@@ -0,0 +1,10 @@
package b
import a.ProtectedParent
class ProtectedChild : ProtectedParent() {
fun foo() {
this.inherit()
inherit()
}
}
@@ -0,0 +1,12 @@
package a
open class ProtectedParent {
protected open fun inherit() {}
}
class <caret>ProtectedChild : ProtectedParent() {
fun foo() {
this.inherit()
inherit()
}
}
@@ -0,0 +1,5 @@
{
"mainFile": "a/test.kt",
"type": "MOVE_KOTLIN_TOP_LEVEL_DECLARATIONS",
"targetPackage": "b"
}