Report error on calls to obsolete inline suspend functions

They do not contain markers for suspend calls in them

See the changes introduced for fixing KT-16603
This commit is contained in:
Denis Zharkov
2017-06-15 14:56:17 +03:00
parent 6441c9d913
commit cb95986c36
12 changed files with 115 additions and 29 deletions
@@ -0,0 +1,4 @@
package library
inline suspend fun foo() {}
suspend fun bar() {}
@@ -0,0 +1,6 @@
import library.*
suspend fun test() {
foo()
bar()
}
@@ -0,0 +1,4 @@
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