Remove API_VERSION 1.3 from compiler tests

So that these tests will now check behavior on the latest API version
This commit is contained in:
Alexander Udalov
2018-12-18 17:03:58 +01:00
parent 37e1b486f4
commit 77c87fa6c9
11 changed files with 5 additions and 13 deletions
@@ -1,6 +1,6 @@
// !LANGUAGE: +ReleaseCoroutines
// !API_VERSION: 1.3
// !DIAGNOSTICS: -UNUSED_VARIABLE
suspend fun foo() {}
class A {
@@ -1,5 +1,4 @@
// !LANGUAGE: +ReleaseCoroutines
// !API_VERSION: 1.3
// SKIP_TXT
fun <R> suspend(block: suspend () -> R): suspend () -> R = block
@@ -1,5 +1,4 @@
// !LANGUAGE: +ReleaseCoroutines
// !API_VERSION: 1.3
// SKIP_TXT
fun <R> suspend(block: R) = block
@@ -1,6 +1,6 @@
// !LANGUAGE: +ReleaseCoroutines
// !API_VERSION: 1.3
// SKIP_TXT
fun bar() {
suspend {
println()
@@ -1,6 +1,6 @@
// !LANGUAGE: +ReleaseCoroutines
// !API_VERSION: 1.3
// SKIP_TXT
import kotlin.suspend as suspendLambda
fun bar() {
@@ -1,4 +1,3 @@
// !API_VERSION: 1.3
// !LANGUAGE: +ReleaseCoroutines
// SKIP_TXT
@@ -6,4 +5,4 @@ import kotlin.coroutines.experimental.coroutineContext
suspend fun test() {
<!UNSUPPORTED!>coroutineContext<!>
}
}
@@ -1,7 +1,6 @@
// !API_VERSION: 1.3
// !LANGUAGE: +ReleaseCoroutines
// SKIP_TXT
suspend fun test() {
suspend {}
}
}
@@ -1,5 +1,4 @@
// !USE_EXPERIMENTAL: kotlin.Experimental
// !API_VERSION: 1.3
// !DIAGNOSTICS: -UNUSED_EXPRESSION, -UNUSED_VARIABLE, -UNUSED_PARAMETER
fun test() {