Support inline suspend functions built with compiler version less than 1.1.4/1.2-M1
The error message is removed and is replaced with a code that adapts inline suspend functions produced by the old compiler with the suspension markers that new compiler expects.
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
package library
|
||||
|
||||
inline suspend fun foo() {}
|
||||
suspend fun bar() {}
|
||||
@@ -1,6 +0,0 @@
|
||||
import library.*
|
||||
|
||||
suspend fun test() {
|
||||
foo()
|
||||
bar()
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
compiler/testData/bytecodeVersion/obsoleteInlineSuspend/B.kt:4:5: error: cannot inline suspend function built with compiler version less than 1.1.4/1.2-M1
|
||||
foo()
|
||||
^
|
||||
COMPILATION_ERROR
|
||||
Reference in New Issue
Block a user