Redundant overriding method: do not report when super method is not called

#KT-34959 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-12-11 00:53:53 +09:00
committed by klunnii
parent 76ed09482f
commit a2bde2ffb2
3 changed files with 29 additions and 0 deletions
@@ -0,0 +1,16 @@
// PROBLEM: none
interface I {
fun foo(parent: String)
}
open class A {
open fun foo(parent: Any) {}
}
class B : A(), I {
override <caret>fun foo(parent: String) {
super.foo(parent)
}
}