Prohibit using suspend functions as SAM in fun interfaces
#KT-40978 Fixed
This commit is contained in:
+1
@@ -6,6 +6,7 @@ import helpers.*
|
||||
import kotlin.coroutines.*
|
||||
|
||||
fun interface SuspendRunnable {
|
||||
@Suppress("FUN_INTERFACE_WITH_SUSPEND_FUNCTION")
|
||||
suspend fun invoke()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user