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:
@@ -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
|
||||
Reference in New Issue
Block a user