From 77c87fa6c9e94eaa6c05d3b103eeb2f9104bfff7 Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Tue, 18 Dec 2018 17:03:58 +0100 Subject: [PATCH] Remove API_VERSION 1.3 from compiler tests So that these tests will now check behavior on the latest API version --- .../testData/codegen/box/reflection/modifiers/functions.kt | 1 - .../codegen/boxInline/suspend/callableReference/simple.kt | 1 - .../tests/coroutines/callableReference/outsideSuspend.kt | 1 - .../testsWithStdLib/coroutines/callableReferences.kt | 2 +- .../coroutines/modifierFormForNonBuiltInSuspend.kt | 1 - .../modifierFormForNonBuiltInSuspendWithAnyParameter.kt | 1 - .../testsWithStdLib/coroutines/nonModifierFormForBuiltIn.kt | 2 +- .../coroutines/nonModifierFormForBuiltInRenameOnImport.kt | 2 +- .../testsWithStdLib/coroutines/release/coroutineContext.kt | 3 +-- .../diagnostics/testsWithStdLib/coroutines/release/suspend.kt | 3 +-- .../experimental/experimentalUnsignedLiterals.kt | 1 - 11 files changed, 5 insertions(+), 13 deletions(-) diff --git a/compiler/testData/codegen/box/reflection/modifiers/functions.kt b/compiler/testData/codegen/box/reflection/modifiers/functions.kt index 16d9e7a5411..7097b4892ca 100644 --- a/compiler/testData/codegen/box/reflection/modifiers/functions.kt +++ b/compiler/testData/codegen/box/reflection/modifiers/functions.kt @@ -1,5 +1,4 @@ // !LANGUAGE: +ReleaseCoroutines -// !API_VERSION: 1.3 // IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JS_IR // TODO: muted automatically, investigate should it be ran for JS or not diff --git a/compiler/testData/codegen/boxInline/suspend/callableReference/simple.kt b/compiler/testData/codegen/boxInline/suspend/callableReference/simple.kt index ac1a1e38da4..c756e24583a 100644 --- a/compiler/testData/codegen/boxInline/suspend/callableReference/simple.kt +++ b/compiler/testData/codegen/boxInline/suspend/callableReference/simple.kt @@ -1,5 +1,4 @@ // !LANGUAGE: +ReleaseCoroutines -// !API_VERSION: 1.3 // IGNORE_BACKEND: NATIVE // IGNORE_BACKEND: JS // IGNORE_BACKEND: JVM_IR diff --git a/compiler/testData/diagnostics/tests/coroutines/callableReference/outsideSuspend.kt b/compiler/testData/diagnostics/tests/coroutines/callableReference/outsideSuspend.kt index 2352c576911..50d9f453c69 100644 --- a/compiler/testData/diagnostics/tests/coroutines/callableReference/outsideSuspend.kt +++ b/compiler/testData/diagnostics/tests/coroutines/callableReference/outsideSuspend.kt @@ -1,6 +1,5 @@ // !CHECK_TYPE // !LANGUAGE: +ReleaseCoroutines -// !API_VERSION: 1.3 // SKIP_TXT import kotlin.reflect.KSuspendFunction0 diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/callableReferences.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/callableReferences.kt index 8786f13dfaf..55848bd402b 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/callableReferences.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/callableReferences.kt @@ -1,6 +1,6 @@ // !LANGUAGE: +ReleaseCoroutines -// !API_VERSION: 1.3 // !DIAGNOSTICS: -UNUSED_VARIABLE + suspend fun foo() {} class A { diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/modifierFormForNonBuiltInSuspend.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/modifierFormForNonBuiltInSuspend.kt index 239707bbed5..1c196ec0820 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/modifierFormForNonBuiltInSuspend.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/modifierFormForNonBuiltInSuspend.kt @@ -1,5 +1,4 @@ // !LANGUAGE: +ReleaseCoroutines -// !API_VERSION: 1.3 // SKIP_TXT fun suspend(block: suspend () -> R): suspend () -> R = block diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/modifierFormForNonBuiltInSuspendWithAnyParameter.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/modifierFormForNonBuiltInSuspendWithAnyParameter.kt index 9712d9cfe45..0ec31376e47 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/modifierFormForNonBuiltInSuspendWithAnyParameter.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/modifierFormForNonBuiltInSuspendWithAnyParameter.kt @@ -1,5 +1,4 @@ // !LANGUAGE: +ReleaseCoroutines -// !API_VERSION: 1.3 // SKIP_TXT fun suspend(block: R) = block diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/nonModifierFormForBuiltIn.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/nonModifierFormForBuiltIn.kt index 64c6e38e67b..e2d0c387ab5 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/nonModifierFormForBuiltIn.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/nonModifierFormForBuiltIn.kt @@ -1,6 +1,6 @@ // !LANGUAGE: +ReleaseCoroutines -// !API_VERSION: 1.3 // SKIP_TXT + fun bar() { suspend { println() diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/nonModifierFormForBuiltInRenameOnImport.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/nonModifierFormForBuiltInRenameOnImport.kt index 62433d37ee2..705ef7c7f7f 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/nonModifierFormForBuiltInRenameOnImport.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/nonModifierFormForBuiltInRenameOnImport.kt @@ -1,6 +1,6 @@ // !LANGUAGE: +ReleaseCoroutines -// !API_VERSION: 1.3 // SKIP_TXT + import kotlin.suspend as suspendLambda fun bar() { diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/release/coroutineContext.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/release/coroutineContext.kt index 5463b65b80f..76f47275c19 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/release/coroutineContext.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/release/coroutineContext.kt @@ -1,4 +1,3 @@ -// !API_VERSION: 1.3 // !LANGUAGE: +ReleaseCoroutines // SKIP_TXT @@ -6,4 +5,4 @@ import kotlin.coroutines.experimental.coroutineContext suspend fun test() { coroutineContext -} \ No newline at end of file +} diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/release/suspend.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/release/suspend.kt index 6e3fc00c236..cacff65422f 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/release/suspend.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/release/suspend.kt @@ -1,7 +1,6 @@ -// !API_VERSION: 1.3 // !LANGUAGE: +ReleaseCoroutines // SKIP_TXT suspend fun test() { suspend {} -} \ No newline at end of file +} diff --git a/compiler/testData/diagnostics/testsWithStdLib/experimental/experimentalUnsignedLiterals.kt b/compiler/testData/diagnostics/testsWithStdLib/experimental/experimentalUnsignedLiterals.kt index fce397386b9..7ef2bae7e4e 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/experimental/experimentalUnsignedLiterals.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/experimental/experimentalUnsignedLiterals.kt @@ -1,5 +1,4 @@ // !USE_EXPERIMENTAL: kotlin.Experimental -// !API_VERSION: 1.3 // !DIAGNOSTICS: -UNUSED_EXPRESSION, -UNUSED_VARIABLE, -UNUSED_PARAMETER fun test() {