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
+20
@@ -0,0 +1,20 @@
|
||||
// SKIP_KT_DUMP
|
||||
// !LANGUAGE: +SuspendConversion
|
||||
|
||||
fun interface SuspendRunnable {
|
||||
suspend fun invoke()
|
||||
}
|
||||
|
||||
fun foo1(s: SuspendRunnable) {}
|
||||
fun bar1() {}
|
||||
|
||||
fun bar2(s: String = ""): Int = 0
|
||||
|
||||
fun bar3() {}
|
||||
suspend fun bar3(s: String = ""): Int = 0
|
||||
|
||||
fun box() {
|
||||
foo1(::bar1)
|
||||
foo1(::bar2)
|
||||
foo1(::bar3)
|
||||
}
|
||||
Reference in New Issue
Block a user