df6d4f358a
Labels are meaningful only if they can be referenced by 'break', 'continue', or 'return' expressions.
12 lines
274 B
Kotlin
Vendored
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")
|
|
}
|
|
}
|