Files
kotlin-fork/compiler/testData/diagnostics/tests/falseNegativeDuplicateDefaultValues1_error.kt
T
2023-08-28 10:57:40 +00:00

17 lines
370 B
Kotlin
Vendored

// LANGUAGE: +ProhibitAllMultipleDefaultsInheritedFromSupertypes
// 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) {}
}