dc9ed5656e
It's possible to write a fix that would prevent false positives with this checker, but the core intuition behind it is invalid. This checker assumes that it's enough to only check direct overriddens, while in reality even simple `Source` override functions are not allowed to contain default values, so they can't be used to make judgements about them. ^KT-59408 Open ^KT-59408 Open ^KT-61095 Fixed ^KT-61165 Fixed ^KT-61029 Fixed
19 lines
364 B
Kotlin
Vendored
19 lines
364 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// ISSUE: KT-36188
|
|
|
|
interface SomeRandomBase<K> {
|
|
fun child(props: Int = 20)
|
|
}
|
|
|
|
interface SomeRandomOverride<J> : SomeRandomBase<J> {
|
|
override fun child(props: Int) {}
|
|
}
|
|
|
|
open class Keker<P> {
|
|
open fun child(props: Int = 10) {}
|
|
}
|
|
|
|
class Implementation<P>() : Keker<P>(), SomeRandomOverride<P> {
|
|
override fun child(props: Int) {}
|
|
}
|