JVM_IR: mark inline lambda functions with a special origin

Keeping the origin as LOCAL_FUNCTION_FOR_LAMBDA was a mistake as this
tells codegen nothing. Changing the origin in allows, for example,
removing the hack that detaches inline lambdas from the IR tree before
verification and codegen, or treating inline lambdas and inline
anonymous functions the same way.

This includes fake functions created for inline callable references.

 #KT-48319 Fixed
 #KT-47279 Fixed?
This commit is contained in:
pyos
2021-08-31 14:56:50 +02:00
committed by max-kammerer
parent 6b58c3d035
commit 0864f9faf8
15 changed files with 38 additions and 63 deletions
+2 -1
View File
@@ -3,7 +3,8 @@ class A {
private set
fun test() {
{ prop }()
val f = { prop }
f()
}
}