Redundant overriding method: do not report when super method is not called
#KT-34959 Fixed
This commit is contained in:
committed by
klunnii
parent
76ed09482f
commit
a2bde2ffb2
+16
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user