Files
kotlin-fork/compiler/testData/diagnostics/tests/traitWithRequired/kt3006.kt
T
Alexander Udalov 47d5f83d04 Report unmet trait requirements
#KT-3006 Fixed
2014-08-13 17:19:55 +04:00

14 lines
236 B
Kotlin

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