blob: 4b26b92754442c6ebf8a3938fcc67c177d922cbb [file]
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
import kotlin.reflect.KProperty
class D {
operator fun getValue(a: Any, p: KProperty<*>) { }
}
object P {
val u = Unit
val v by D()
var w = Unit
}
fun box(): String {
if (P.u != P.v) return "Fail uv"
P.w = Unit
if (P.w != P.u) return "Fail w"
return "OK"
}