1e26888dd9
Incorrect `valueParameter` was passed to `generateValueArgument`, which resulted in incorrect type being considered for generating suspend conversion. #KT-50949 Fixed
9 lines
191 B
Kotlin
Vendored
9 lines
191 B
Kotlin
Vendored
// !LANGUAGE: +SuspendConversion
|
|
// IGNORE_BACKEND: JVM
|
|
|
|
fun box(): String {
|
|
val foo: String.(suspend () -> Unit) -> String = { this }
|
|
val f: () -> Unit = {}
|
|
return "OK".foo(f)
|
|
}
|