Files
kotlin-fork/compiler/testData/diagnostics/tests/delegatedProperty/delegatedPropertyOverridedInTrait.kt
T
2015-05-12 19:43:17 +02:00

20 lines
243 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_PARAMETER
interface A {
val prop: Int
}
class AImpl: A {
override val prop by Delegate()
}
fun foo() {
AImpl().prop
}
class Delegate {
fun get(t: Any?, p: PropertyMetadata): Int {
return 1
}
}