[PSI2IR] Set reflectionTarget for all adapted references

This commit is contained in:
Igor Chevdar
2021-02-01 15:35:03 +05:00
parent 690fb47cbb
commit bb8bf28b8b
27 changed files with 289 additions and 176 deletions
@@ -18,10 +18,13 @@ fun testSamConstructor(): KRunnable {
}
fun testSamCosntructorOnAdapted(): KRunnable {
return local fun foo1() {
foo1() /*~> Unit */
}
/*-> KRunnable */
return { // BLOCK
local fun foo1() {
foo1() /*~> Unit */
}
::foo1
} /*-> KRunnable */
}
fun testSamConversion() {
@@ -29,9 +32,12 @@ fun testSamConversion() {
}
fun testSamConversionOnAdapted() {
use(r = local fun foo1() {
foo1() /*~> Unit */
}
/*-> KRunnable */)
use(r = { // BLOCK
local fun foo1() {
foo1() /*~> Unit */
}
::foo1
} /*-> KRunnable */)
}