f79f715590
this error is not valid for scripts, where some receivers are set later in the lowering, and it looks like in other cases this problem will be detected later in lowering or codegen anyway.
14 lines
178 B
Kotlin
Vendored
14 lines
178 B
Kotlin
Vendored
|
|
import kotlin.reflect.KProperty
|
|
|
|
class Delegate {
|
|
operator fun getValue(t: Any?, p: KProperty<*>): Int = 3
|
|
}
|
|
|
|
|
|
val prop: Int by Delegate()
|
|
|
|
val x = prop
|
|
|
|
// expected: x: 3
|