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:
Roman Elizarov
2017-07-13 22:53:30 +03:00
parent 9f0810f723
commit f2b5f37b22
14 changed files with 200 additions and 66 deletions
@@ -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