FIR: fix incorrect handling of suspend function typealiases again
The previous attempt stopped this code from throwing an exception during serialization, but the arity is still wrong so an exception is now throw when reading the serialized type. ^KT-50997 Fixed
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
// WITH_STDLIB
|
||||
// ISSUE: KT-50997 (multi-module variant)
|
||||
// MODULE: lib
|
||||
// FILE: lib.kt
|
||||
typealias MySuspendFunction = suspend (String, String) -> Unit
|
||||
|
||||
fun foo(function: MySuspendFunction) {}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: main.kt
|
||||
fun bar() = foo { a, b -> a + b }
|
||||
|
||||
fun box() = "OK"
|
||||
Vendored
+1
-1
@@ -2,4 +2,4 @@
|
||||
|
||||
typealias MySuspendFunction = suspend (String) -> Unit
|
||||
fun foo(function: MySuspendFunction) {}
|
||||
fun box() = "OK"
|
||||
fun box() = "OK"
|
||||
|
||||
Reference in New Issue
Block a user