From f594cb22e82d1ffe711636334017c2ec698fd5d2 Mon Sep 17 00:00:00 2001 From: Denis Zharkov Date: Tue, 21 Aug 2018 16:25:36 +0300 Subject: [PATCH] Add "LANGUAGE_VERSION: 1.2" directive where it's necessary --- .../testData/codegen/box/coroutines/coroutineToString_1_2.kt | 1 + .../box/coroutines/createCoroutinesOnManualInstances_1_2.kt | 1 + compiler/testData/codegen/box/coroutines/illegalState_1_2.kt | 1 + .../codegen/box/coroutines/multiModule/inlineWithJava_1_2.kt | 1 + .../codegen/box/coroutines/suspendCovariantJavaOverrides_1_2.kt | 1 + .../suspendFunctionAsCoroutine/openFunWithJava_1_2.kt | 1 + .../testData/codegen/box/coroutines/suspendJavaOverrides_1_2.kt | 1 + compiler/testData/codegen/bytecodeText/constCoroutine.kt | 2 +- .../bytecodeText/coroutines/doNotReassignContinuation_1_2.kt | 1 + .../coroutines/varValueConflictsWithTableSameSort_1_2.kt | 1 + .../bytecodeText/coroutines/varValueConflictsWithTable_1_2.kt | 1 + 11 files changed, 11 insertions(+), 1 deletion(-) diff --git a/compiler/testData/codegen/box/coroutines/coroutineToString_1_2.kt b/compiler/testData/codegen/box/coroutines/coroutineToString_1_2.kt index a5cd443a393..0440ec49677 100644 --- a/compiler/testData/codegen/box/coroutines/coroutineToString_1_2.kt +++ b/compiler/testData/codegen/box/coroutines/coroutineToString_1_2.kt @@ -1,3 +1,4 @@ +// LANGUAGE_VERSION: 1.2 // IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM diff --git a/compiler/testData/codegen/box/coroutines/createCoroutinesOnManualInstances_1_2.kt b/compiler/testData/codegen/box/coroutines/createCoroutinesOnManualInstances_1_2.kt index db0330419d3..df96cb6e0cf 100644 --- a/compiler/testData/codegen/box/coroutines/createCoroutinesOnManualInstances_1_2.kt +++ b/compiler/testData/codegen/box/coroutines/createCoroutinesOnManualInstances_1_2.kt @@ -1,3 +1,4 @@ +// LANGUAGE_VERSION: 1.2 // IGNORE_BACKEND: JS_IR // IGNORE_BACKEND: JVM_IR // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/coroutines/illegalState_1_2.kt b/compiler/testData/codegen/box/coroutines/illegalState_1_2.kt index 10f66a60d5c..29eb33748c1 100644 --- a/compiler/testData/codegen/box/coroutines/illegalState_1_2.kt +++ b/compiler/testData/codegen/box/coroutines/illegalState_1_2.kt @@ -1,3 +1,4 @@ +// LANGUAGE_VERSION: 1.2 // IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JS_IR // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/coroutines/multiModule/inlineWithJava_1_2.kt b/compiler/testData/codegen/box/coroutines/multiModule/inlineWithJava_1_2.kt index 012758510b7..3d0308a25bb 100644 --- a/compiler/testData/codegen/box/coroutines/multiModule/inlineWithJava_1_2.kt +++ b/compiler/testData/codegen/box/coroutines/multiModule/inlineWithJava_1_2.kt @@ -1,3 +1,4 @@ +// LANGUAGE_VERSION: 1.2 // IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: NATIVE, JS, JS_IR // WITH_COROUTINES diff --git a/compiler/testData/codegen/box/coroutines/suspendCovariantJavaOverrides_1_2.kt b/compiler/testData/codegen/box/coroutines/suspendCovariantJavaOverrides_1_2.kt index f0936cd8cfc..a6db3afc96e 100644 --- a/compiler/testData/codegen/box/coroutines/suspendCovariantJavaOverrides_1_2.kt +++ b/compiler/testData/codegen/box/coroutines/suspendCovariantJavaOverrides_1_2.kt @@ -1,3 +1,4 @@ +// LANGUAGE_VERSION: 1.2 // IGNORE_BACKEND: JVM_IR // TARGET_BACKEND: JVM // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/openFunWithJava_1_2.kt b/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/openFunWithJava_1_2.kt index 96e4633b056..bd95a0f28df 100644 --- a/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/openFunWithJava_1_2.kt +++ b/compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/openFunWithJava_1_2.kt @@ -1,3 +1,4 @@ +// LANGUAGE_VERSION: 1.2 // IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JS_IR // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/coroutines/suspendJavaOverrides_1_2.kt b/compiler/testData/codegen/box/coroutines/suspendJavaOverrides_1_2.kt index 0284eb3ea8a..5e0d23533c0 100644 --- a/compiler/testData/codegen/box/coroutines/suspendJavaOverrides_1_2.kt +++ b/compiler/testData/codegen/box/coroutines/suspendJavaOverrides_1_2.kt @@ -1,3 +1,4 @@ +// LANGUAGE_VERSION: 1.2 // IGNORE_BACKEND: JVM_IR // TARGET_BACKEND: JVM // WITH_RUNTIME diff --git a/compiler/testData/codegen/bytecodeText/constCoroutine.kt b/compiler/testData/codegen/bytecodeText/constCoroutine.kt index 7eaffcbaf17..d4073c465f4 100644 --- a/compiler/testData/codegen/bytecodeText/constCoroutine.kt +++ b/compiler/testData/codegen/bytecodeText/constCoroutine.kt @@ -1,4 +1,4 @@ -// !API_VERSION: 1.2 +// LANGUAGE_VERSION: 1.2 // WITH_RUNTIME // WITH_COROUTINES import helpers.* diff --git a/compiler/testData/codegen/bytecodeText/coroutines/doNotReassignContinuation_1_2.kt b/compiler/testData/codegen/bytecodeText/coroutines/doNotReassignContinuation_1_2.kt index 6349710758e..fac597b53bb 100644 --- a/compiler/testData/codegen/bytecodeText/coroutines/doNotReassignContinuation_1_2.kt +++ b/compiler/testData/codegen/bytecodeText/coroutines/doNotReassignContinuation_1_2.kt @@ -1,3 +1,4 @@ +// LANGUAGE_VERSION: 1.2 // WITH_RUNTIME // WITH_COROUTINES import helpers.* diff --git a/compiler/testData/codegen/bytecodeText/coroutines/varValueConflictsWithTableSameSort_1_2.kt b/compiler/testData/codegen/bytecodeText/coroutines/varValueConflictsWithTableSameSort_1_2.kt index 2259c536d2e..968c5447434 100644 --- a/compiler/testData/codegen/bytecodeText/coroutines/varValueConflictsWithTableSameSort_1_2.kt +++ b/compiler/testData/codegen/bytecodeText/coroutines/varValueConflictsWithTableSameSort_1_2.kt @@ -1,3 +1,4 @@ +// LANGUAGE_VERSION: 1.2 // WITH_RUNTIME // WITH_COROUTINES import helpers.* diff --git a/compiler/testData/codegen/bytecodeText/coroutines/varValueConflictsWithTable_1_2.kt b/compiler/testData/codegen/bytecodeText/coroutines/varValueConflictsWithTable_1_2.kt index 6627c017a01..d114b2bd9ae 100644 --- a/compiler/testData/codegen/bytecodeText/coroutines/varValueConflictsWithTable_1_2.kt +++ b/compiler/testData/codegen/bytecodeText/coroutines/varValueConflictsWithTable_1_2.kt @@ -1,3 +1,4 @@ +// LANGUAGE_VERSION: 1.2 // WITH_RUNTIME // WITH_COROUTINES import helpers.*