JVM_IR: when convering references to lambdas, bind the receiver

instead of storing it into a captured temporary.

This makes the resulting lambdas equivalend to adapted function
references produced by PSI2IR or FIR2IR.

 #KT-42492 Fixed
This commit is contained in:
pyos
2020-10-06 16:56:42 +02:00
committed by max-kammerer
parent 95fb597da0
commit 12bec7cca2
4 changed files with 36 additions and 54 deletions
@@ -1,5 +1,4 @@
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND_FIR: JVM_IR
// !LANGUAGE: +NewInference
// !DIAGNOSTICS: -EXPERIMENTAL_API_USAGE_ERROR -UNUSED_EXPRESSION
// WITH_RUNTIME