Files
kotlin-fork/compiler/testData/codegen/box/callableReference/property/kt14330_2.kt
T
2020-11-09 16:04:43 +03:00

16 lines
383 B
Kotlin
Vendored

// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: PROPERTY_REFERENCES
var recivier : Any? = "fail"
var value2 : Any? = "fail2"
var <T> T.bar : T
get() = this
set(value) { recivier = this; value2 = value}
fun box(): String {
String?::bar.set(null, null)
if (recivier != null) "fail 1: ${recivier}"
if (value2 != null) "fail 2: ${value2}"
return "OK"
}