Files
kotlin-fork/compiler/testData/diagnostics/tests/duplicateDirrectOverriddenCallables.kt
T
Nikolay Lunyak dc9ed5656e [FIR] Revert FirMultipleDefaultsInheritedFromSupertypesChecker
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
2023-08-17 13:55:19 +00:00

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) {}
}