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
15 lines
244 B
Kotlin
Vendored
15 lines
244 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// ISSUE: KT-61095
|
|
|
|
package org.example
|
|
|
|
interface Base<P> {
|
|
fun child(props: Int = 10)
|
|
}
|
|
|
|
interface Intermediate<P> : Base<P>
|
|
|
|
class Implementation<P>() : Intermediate<P>, Base<P> {
|
|
override fun child(props: Int) {}
|
|
}
|