[LL FIR] do not create lazy bodies during on-air resolve in scripts
We assume that on-air resolve already has normal bodies, so depending on this fact, we can omit some redundant work ^KT-61026 Fixed
This commit is contained in:
committed by
Space Team
parent
601ffb2db4
commit
734a3e5716
+16
@@ -0,0 +1,16 @@
|
||||
package one
|
||||
|
||||
class A
|
||||
class B
|
||||
|
||||
fun foo(a: () -> Unit) {
|
||||
|
||||
}
|
||||
|
||||
foo {
|
||||
<expr>one.A</expr>
|
||||
}
|
||||
|
||||
foo {
|
||||
one.B
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
Before shortening: one.A
|
||||
with DO_NOT_SHORTEN:
|
||||
with SHORTEN_IF_ALREADY_IMPORTED:
|
||||
with SHORTEN_AND_IMPORT:
|
||||
[qualifier] one.A
|
||||
with SHORTEN_AND_STAR_IMPORT:
|
||||
[qualifier] one.A
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
package one
|
||||
|
||||
class A
|
||||
class B
|
||||
|
||||
fun foo(a: () -> Unit) {
|
||||
|
||||
}
|
||||
|
||||
foo {
|
||||
one.A
|
||||
}
|
||||
|
||||
foo {
|
||||
one.B
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
with DO_NOT_SHORTEN:
|
||||
with SHORTEN_IF_ALREADY_IMPORTED:
|
||||
with SHORTEN_AND_IMPORT:
|
||||
[qualifier] one.A
|
||||
[qualifier] one.B
|
||||
with SHORTEN_AND_STAR_IMPORT:
|
||||
[qualifier] one.A
|
||||
[qualifier] one.B
|
||||
Reference in New Issue
Block a user