Check for backend when checking for suspend in fun interfaces

This commit is contained in:
Ilmir Usmanov
2021-03-16 01:23:28 +01:00
parent bf2942b5cc
commit a90a5f6dd4
22 changed files with 85 additions and 92 deletions
@@ -0,0 +1,4 @@
compiler/testData/cli/jvm/suspendInFunInterfaceIrDisabled.kt:2:5: error: 'suspend' modifier is not allowed on a single abstract member
suspend fun foo()
^
COMPILATION_ERROR