Raw FIR: generate 'return setValue' instead of just 'setValue'

#KT-61045 Fixed
This commit is contained in:
Mikhail Glukhikh
2023-08-18 17:28:17 +02:00
committed by Space Team
parent 7d5e2f85cc
commit 9846ec23df
37 changed files with 209 additions and 190 deletions
@@ -18,7 +18,7 @@ fun test2() {
return x$delegate.getValue<Int, Int>(thisRef = null, property = ::x)
}
local set(<set-?>: Int) {
x$delegate.setValue<Int>(thisRef = null, property = ::x, value = <set-?>)
return x$delegate.setValue<Int>(thisRef = null, property = ::x, value = <set-?>)
}
<set-x>(<set-?> = 0)
@@ -29,4 +29,3 @@ fun test2() {
} /*~> Unit */
<set-x>(<set-?> = <get-x>().plus(other = 1))
}