[Test] Update diagnostics testdata according to allowed suspend fun interfaces

This commit is contained in:
Dmitriy Novozhilov
2021-01-21 17:56:32 +03:00
parent a253b9508e
commit 299272fa6d
6 changed files with 6 additions and 6 deletions
@@ -71,7 +71,7 @@ interface BaseWithGeneric {
fun interface GoodExtensionGeneric : GoodGeneric<String>
fun interface GoodSuspend {
<!FUN_INTERFACE_WITH_SUSPEND_FUNCTION!>suspend<!> fun invoke()
suspend fun invoke()
}
class WithNestedFun<K> {
@@ -2,7 +2,7 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER -NOTHING_TO_INLINE
fun interface SuspendRunnable {
<!FUN_INTERFACE_WITH_SUSPEND_FUNCTION!>suspend<!> fun invoke()
suspend fun invoke()
}
fun run(r: SuspendRunnable) {}
@@ -2,7 +2,7 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
fun interface SuspendRunnable {
<!FUN_INTERFACE_WITH_SUSPEND_FUNCTION!>suspend<!> fun invoke()
suspend fun invoke()
}
fun foo(s: SuspendRunnable) {}
@@ -2,7 +2,7 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_EXPRESSION
fun interface SuspendRunnable {
<!FUN_INTERFACE_WITH_SUSPEND_FUNCTION!>suspend<!> fun run()
suspend fun run()
}
object Test1 {
@@ -2,7 +2,7 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
fun interface SuspendRunnable {
<!FUN_INTERFACE_WITH_SUSPEND_FUNCTION!>suspend<!> fun invoke()
suspend fun invoke()
}
fun foo1(s: SuspendRunnable) {}
@@ -2,7 +2,7 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_EXPRESSION
fun interface SuspendRunnable {
<!FUN_INTERFACE_WITH_SUSPEND_FUNCTION!>suspend<!> fun run()
suspend fun run()
}
fun foo(r: SuspendRunnable) {}