Prohibit using suspend functions as SAM in fun interfaces
#KT-40978 Fixed
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_EXPRESSION
|
||||
|
||||
fun interface SuspendRunnable {
|
||||
suspend fun run()
|
||||
<!FUN_INTERFACE_WITH_SUSPEND_FUNCTION!>suspend<!> fun run()
|
||||
}
|
||||
|
||||
fun foo(r: SuspendRunnable) {}
|
||||
|
||||
Reference in New Issue
Block a user