In 1.4 there seems to be limitation for functional...
# announcements
y
In 1.4 there seems to be limitation for functional interfaces - suspend functions are not supported. Why? Is it final language design decision or temporal limitation of some kind?
Copy code
fun interface Plugin {
  suspend fun onFinish()
}
‘suspend’ modifier is not allowed on a single abstract member
4
d
We found critical bug for such fun interfaces shortly before release, so we decide to prohibit them for now and fix in further releases
👍 10
y
Thanks 👌
k
Any updates on this @dmitriy.novozhilov @Yuri?
I get the below IDE error but I’m able to compile
d
k
Yeah, I don’t get a compilation error. It compiles just fine. It seems to be just an IDE error Im using Kotlin
1.7.10
Any way to solve this?
d
I can only suggest to update your intellij and Kotlin IDE plugin to latest versions. If it won't help (or you already did this) please report an issue to youtrack
👍 1
r
Copy code
@Suppress("FUN_INTERFACE_WITH_SUSPEND_FUNCTION")