Files
kotlin-fork/compiler/testData/diagnostics/tests/traitWithRequired/kt3006.kt
T

14 lines
236 B
Kotlin

open class Base {
}
trait Derived: Base {
fun foo() {
f1(this@Derived)
}
}
<!UNMET_TRAIT_REQUIREMENT!>class DerivedImpl<!>(): Derived {}
<!UNMET_TRAIT_REQUIREMENT!>object ObjectImpl<!>: Derived {}
fun f1(b: Base) = b