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:
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
// !LANGUAGE: +SuspendConversion
|
||||
// IGNORE_BACKEND: JVM
|
||||
|
||||
fun box(): String {
|
||||
val foo: String.(suspend () -> Unit) -> String = { this }
|
||||
val f: () -> Unit = {}
|
||||
return "OK".foo(f)
|
||||
}
|
||||
Reference in New Issue
Block a user