Psi2ir: fix parameter indices when generating extension invoke call

Incorrect `valueParameter` was passed to `generateValueArgument`, which
resulted in incorrect type being considered for generating suspend
conversion.

 #KT-50949 Fixed
This commit is contained in:
Alexander Udalov
2022-03-08 23:59:26 +01:00
parent c2ab23ed70
commit 1e26888dd9
16 changed files with 138 additions and 3 deletions
@@ -0,0 +1,8 @@
// SKIP_KT_DUMP
// !LANGUAGE: +SuspendConversion
fun main() {
val foo: String.(suspend () -> Unit) -> Unit = {}
val f: () -> Unit = {}
"".foo(f)
}