JS IR: fix origin for callable references with bound reciever

In case of IrFunctionReference with type SuspendFunction (no K!) there
was a misalignment between the base class (Any) and the
origin (LAMBDA..). As a result the SuspendFunctionLowering was
getting confused and produced hanging code.
This commit is contained in:
Anton Bannykh
2020-05-13 19:31:25 +03:00
parent bdca4b45bd
commit 86b5c63891
6 changed files with 22 additions and 6 deletions
@@ -1,6 +1,6 @@
// !LANGUAGE: +SuspendConversion
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: JVM_IR, JS_IR
// IGNORE_BACKEND: JVM_IR
// ^ TODO fix suspend coercion for bound function references in JVM_IR
// FILE: suspendCovnersion.kt