FE: add test for KT-58332 (K2 fails with ARGUMENT_TYPE_MISMATCH)

This commit is contained in:
Mikhail Glukhikh
2023-05-05 09:55:33 +02:00
committed by Space Team
parent 11e1bcca1d
commit aec0def5ca
10 changed files with 86 additions and 0 deletions
@@ -0,0 +1,13 @@
// ISSUE: KT-58332
fun foo() {
val addNewStatusAction: suspend () -> Unit = useMemo {
suspend fun() {
}
}
}
fun <T> useMemo(callback: () -> T): T {
return callback()
}