Update CLI tests
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
$TESTDATA_DIR$/simple2js.kt
|
||||
-Xir-produce-js
|
||||
-language-version
|
||||
1.4
|
||||
-api-version
|
||||
1.3
|
||||
-output
|
||||
$TEMP_DIR$/out.js
|
||||
@@ -1,3 +0,0 @@
|
||||
warning: API version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
||||
error: IR backend cannot be used with language or API version below 1.4
|
||||
COMPILATION_ERROR
|
||||
@@ -1,6 +0,0 @@
|
||||
$TESTDATA_DIR$/simple2js.kt
|
||||
-Xir-produce-js
|
||||
-language-version
|
||||
1.3
|
||||
-output
|
||||
$TEMP_DIR$/out.js
|
||||
@@ -1,3 +0,0 @@
|
||||
warning: language version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
||||
error: IR backend cannot be used with language or API version below 1.4
|
||||
COMPILATION_ERROR
|
||||
+1
-1
@@ -2,4 +2,4 @@ $TESTDATA_DIR$/languageVersion.kt
|
||||
-output
|
||||
$TEMP_DIR$/out.js
|
||||
-language-version
|
||||
1.3
|
||||
1.4
|
||||
|
||||
+2
-7
@@ -1,9 +1,4 @@
|
||||
package test
|
||||
|
||||
fun test() {
|
||||
while (true) {
|
||||
when {
|
||||
true -> break
|
||||
}
|
||||
}
|
||||
}
|
||||
sealed interface Polygon
|
||||
|
||||
|
||||
+4
-4
@@ -1,5 +1,5 @@
|
||||
warning: language version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
||||
compiler/testData/cli/js/languageVersion.kt:6:21: error: 'break' and 'continue' are not allowed in 'when' statements. Consider using labels to continue/break from the outer loop
|
||||
true -> break
|
||||
^
|
||||
warning: language version 1.4 is deprecated and its support will be removed in a future version of Kotlin
|
||||
compiler/testData/cli/js/languageVersion.kt:3:1: error: the feature "sealed interfaces" is only available since language version 1.5
|
||||
sealed interface Polygon
|
||||
^
|
||||
COMPILATION_ERROR
|
||||
|
||||
Reference in New Issue
Block a user