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:
+2
-1
@@ -3,7 +3,8 @@ class A {
|
||||
private set
|
||||
|
||||
fun test() {
|
||||
{ prop }()
|
||||
val f = { prop }
|
||||
f()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user