Files
kotlin-fork/compiler/testData/diagnostics/tests/delegatedProperty/inTrait.kt
T
2015-10-14 01:29:09 +03:00

12 lines
215 B
Kotlin
Vendored

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