Files
kotlin-fork/compiler/testData/diagnostics/tests/delegatedProperty/inTrait.kt
T
2015-10-12 14:36:38 +03:00

12 lines
206 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_PARAMETER
interface T {
val a: Int <!DELEGATED_PROPERTY_IN_INTERFACE!>by Delegate()<!>
}
class Delegate {
fun getValue(t: Any?, p: PropertyMetadata): Int {
return 1
}
}