Pull Up: Skip super members without explicit declarations

#KT-13124 Fixed
This commit is contained in:
Alexey Sedunov
2016-08-15 18:46:54 +03:00
parent 6766494581
commit 94c4b426f5
6 changed files with 55 additions and 9 deletions
@@ -0,0 +1,17 @@
// TARGET_CLASS: B
open class A {
open fun callSuper() {
// Something important
}
}
open class B : A() {
}
class <caret>C : B() {
// INFO: {"checked": "true"}
override fun callSuper() {
super.callSuper() // We simply call up to the base class
}
}
@@ -0,0 +1,17 @@
// TARGET_CLASS: B
open class A {
open fun callSuper() {
// Something important
}
}
open class B : A() {
// INFO: {"checked": "true"}
override fun callSuper() {
super.callSuper() // We simply call up to the base class
}
}
class C : B() {
}