Search in all superclasses in quickfix for NOTHING_TO_OVERRIDE.

This commit is contained in:
Michał Sapalski
2013-05-02 16:26:07 +02:00
committed by Andrey Breslav
parent 0e96e83154
commit 68cd832831
8 changed files with 78 additions and 21 deletions
@@ -0,0 +1,11 @@
// "Change function signature to 'override fun f(a: Int)'" "true"
trait A {
fun f(a: Int)
}
trait B : A {
}
class C : B {
override fun f(a: Int) {}
}
@@ -0,0 +1,11 @@
// "Change function signature to 'override fun f(a: Int)'" "true"
open class A {
open fun f(a: Int) {}
}
open class B : A() {
}
class C : B() {
<caret>override fun f(a: Int) {}
}
@@ -0,0 +1,11 @@
// "Change function signature to 'override fun f(a: Int)'" "true"
trait A {
fun f(a: Int)
}
trait B : A {
}
class C : B {
<caret>override fun f() {}
}
@@ -0,0 +1,11 @@
// "Change function signature to 'override fun f(a: Int)'" "true"
open class A {
open fun f(a: Int) {}
}
open class B : A() {
}
class C : B() {
<caret>override fun f() {}
}