Files
kotlin-fork/compiler/testData/diagnostics/tests/delegatedProperty/inference/labeledDelegatedExpression.kt
T
2021-10-27 12:26:59 +03:00

12 lines
274 B
Kotlin
Vendored

import kotlin.reflect.KProperty
class A3 {
val a: String by <!REDUNDANT_LABEL_WARNING!>l@<!> MyProperty()
class MyProperty<T> {}
operator fun <T> MyProperty<T>.getValue(thisRef: Any?, desc: KProperty<*>): T {
throw Exception("$thisRef $desc")
}
}