PSI2IR fix suspend conversion tests
- support chained suspend conversion + SAM conversion - support suspend conversion in vararg elements
This commit is contained in:
committed by
teamcityserver
parent
0cc6fbbc6e
commit
d41fc0b599
+17
@@ -0,0 +1,17 @@
|
||||
// !LANGUAGE: +SuspendConversion
|
||||
// SKIP_KT_DUMP
|
||||
|
||||
fun interface SuspendRunnable {
|
||||
suspend fun invoke()
|
||||
}
|
||||
|
||||
fun foo(s: SuspendRunnable) {}
|
||||
|
||||
fun bar(): () -> Unit = {}
|
||||
|
||||
fun test(f: () -> Unit) {
|
||||
foo(f)
|
||||
foo(bar())
|
||||
var t = f
|
||||
foo(t)
|
||||
}
|
||||
Reference in New Issue
Block a user