Pull Up: Skip super members without explicit declarations
#KT-13124 Fixed
This commit is contained in:
@@ -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() {
|
||||
}
|
||||
Reference in New Issue
Block a user