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
17 lines
322 B
Kotlin
Vendored
17 lines
322 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// ISSUE: KT-36188
|
|
|
|
interface SomeRandomBase<K> {
|
|
fun child(props: Int = 20)
|
|
}
|
|
|
|
interface SomeRandomOverride<J> : SomeRandomBase<J>
|
|
|
|
open class Keker<P> {
|
|
open fun child(props: Int = 10) {}
|
|
}
|
|
|
|
class Implementation<P>() : Keker<P>(), SomeRandomOverride<P> {
|
|
override fun child(props: Int) {}
|
|
}
|