Add test for calling release coroutine from experimental one

This commit is contained in:
Ilmir Usmanov
2018-07-09 17:37:22 +03:00
parent cbb81a343c
commit 03c50ea139
4 changed files with 19 additions and 1 deletions
@@ -0,0 +1,3 @@
suspend fun callRelease() {
dummy()
}
@@ -0,0 +1 @@
suspend fun dummy() {}
@@ -0,0 +1,4 @@
compiler/testData/compileKotlinAgainstCustomBinaries/releaseCoroutineCallFromExperimental/experimental.kt:2:5: error: 'dummy(): Unit' is only available since Kotlin 1.3 and cannot be used in Kotlin 1.2
dummy()
^
COMPILATION_ERROR