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
|
-output
|
||||||
$TEMP_DIR$/out.js
|
$TEMP_DIR$/out.js
|
||||||
-language-version
|
-language-version
|
||||||
1.3
|
1.4
|
||||||
|
|||||||
+2
-7
@@ -1,9 +1,4 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
fun test() {
|
sealed interface Polygon
|
||||||
while (true) {
|
|
||||||
when {
|
|
||||||
true -> break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
+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
|
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:6:21: error: 'break' and 'continue' are not allowed in 'when' statements. Consider using labels to continue/break from the outer loop
|
compiler/testData/cli/js/languageVersion.kt:3:1: error: the feature "sealed interfaces" is only available since language version 1.5
|
||||||
true -> break
|
sealed interface Polygon
|
||||||
^
|
^
|
||||||
COMPILATION_ERROR
|
COMPILATION_ERROR
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
error: language version 1.1 is no longer supported; please, use version 1.3 or greater.
|
error: language version 1.1 is no longer supported; please, use version 1.4 or greater.
|
||||||
COMPILATION_ERROR
|
COMPILATION_ERROR
|
||||||
|
|||||||
+1
-1
@@ -2,4 +2,4 @@ $TESTDATA_DIR$/apiVersion.kt
|
|||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
-api-version
|
-api-version
|
||||||
1.3
|
1.4
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
warning: API version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
warning: API version 1.4 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
compiler/testData/cli/jvm/apiVersion.kt:4:5: warning: parameter 'p00' is never used
|
compiler/testData/cli/jvm/apiVersion.kt:4:5: warning: parameter 'p00' is never used
|
||||||
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
^
|
^
|
||||||
|
|||||||
@@ -2,4 +2,4 @@ $TESTDATA_DIR$/apiVersionAndSinceNewerKotlin.kt
|
|||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
-api-version
|
-api-version
|
||||||
1.3
|
1.4
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
@SinceKotlin("1.3")
|
@SinceKotlin("1.4")
|
||||||
fun old() {}
|
fun old() {}
|
||||||
|
|
||||||
@SinceKotlin("1.4")
|
@SinceKotlin("1.5")
|
||||||
fun new() {}
|
fun new() {}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
warning: API version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
warning: API version 1.4 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
compiler/testData/cli/jvm/apiVersionAndSinceNewerKotlin.kt:4:1: warning: the version is greater than the specified API version 1.3
|
compiler/testData/cli/jvm/apiVersionAndSinceNewerKotlin.kt:4:1: warning: the version is greater than the specified API version 1.4
|
||||||
@SinceKotlin("1.4")
|
@SinceKotlin("1.5")
|
||||||
^
|
^
|
||||||
OK
|
OK
|
||||||
|
|||||||
@@ -2,6 +2,6 @@ $TESTDATA_DIR$/apiVersion.kt
|
|||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
-api-version
|
-api-version
|
||||||
1.4
|
1.5
|
||||||
-language-version
|
-language-version
|
||||||
1.3
|
1.4
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
error: -api-version (1.4) cannot be greater than -language-version (1.3)
|
error: -api-version (1.5) cannot be greater than -language-version (1.4)
|
||||||
warning: language version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
warning: language version 1.4 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
COMPILATION_ERROR
|
COMPILATION_ERROR
|
||||||
|
|||||||
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
error: unknown API version: 239.42
|
error: unknown API version: 239.42
|
||||||
Supported API versions: 1.3 (DEPRECATED), 1.4, 1.5, 1.6 (EXPERIMENTAL), 1.7 (EXPERIMENTAL)
|
Supported API versions: 1.4 (DEPRECATED), 1.5, 1.6, 1.7 (EXPERIMENTAL)
|
||||||
COMPILATION_ERROR
|
COMPILATION_ERROR
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
$TESTDATA_DIR$/apiVersion.kt -d $TEMP_DIR$ -api-version 1.3 -language-version 1.4
|
$TESTDATA_DIR$/apiVersion.kt -d $TEMP_DIR$ -api-version 1.4 -language-version 1.5
|
||||||
|
|||||||
@@ -2,6 +2,6 @@ $TESTDATA_DIR$/apiVersion.kt
|
|||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
-api-version
|
-api-version
|
||||||
1.3
|
|
||||||
-language-version
|
|
||||||
1.4
|
1.4
|
||||||
|
-language-version
|
||||||
|
1.5
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
warning: API version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
warning: API version 1.4 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
compiler/testData/cli/jvm/apiVersion.kt:4:5: warning: parameter 'p00' is never used
|
compiler/testData/cli/jvm/apiVersion.kt:4:5: warning: parameter 'p00' is never used
|
||||||
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
^
|
^
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
warning: API version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
warning: API version 1.4 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
compiler/testData/cli/jvm/apiVersion.kt:4:5: warning: parameter 'p00' is never used
|
compiler/testData/cli/jvm/apiVersion.kt:4:5: warning: parameter 'p00' is never used
|
||||||
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
^
|
^
|
||||||
|
|||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
error: API version 1.1 is no longer supported; please, use version 1.3 or greater.
|
error: API version 1.1 is no longer supported; please, use version 1.4 or greater.
|
||||||
COMPILATION_ERROR
|
COMPILATION_ERROR
|
||||||
|
|||||||
+1
-1
@@ -2,4 +2,4 @@
|
|||||||
-X'single \" quote " escaped \' sequence \\'
|
-X'single \" quote " escaped \' sequence \\'
|
||||||
$TESTDATA_DIR$/apiVersion.kt
|
$TESTDATA_DIR$/apiVersion.kt
|
||||||
-d
|
-d
|
||||||
$TEMP_DIR$ -api-version 1.3 -language-version 1.4
|
$TEMP_DIR$ -api-version 1.4 -language-version 1.5
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
warning: flag is not supported by this version of the compiler: -Xdouble ' quote ' escaped " sequence /
|
warning: flag is not supported by this version of the compiler: -Xdouble ' quote ' escaped " sequence /
|
||||||
warning: flag is not supported by this version of the compiler: -Xsingle " quote " escaped ' sequence /
|
warning: flag is not supported by this version of the compiler: -Xsingle " quote " escaped ' sequence /
|
||||||
warning: API version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
warning: API version 1.4 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
compiler/testData/cli/jvm/apiVersion.kt:4:5: warning: parameter 'p00' is never used
|
compiler/testData/cli/jvm/apiVersion.kt:4:5: warning: parameter 'p00' is never used
|
||||||
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
^
|
^
|
||||||
|
|||||||
+1
-1
@@ -2,4 +2,4 @@ $TESTDATA_DIR$/simple.kt
|
|||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
-api-version
|
-api-version
|
||||||
1.3
|
1.4
|
||||||
|
|||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
warning: API version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
warning: API version 1.4 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
OK
|
OK
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
error: language version 1.2 is no longer supported; please, use version 1.3 or greater.
|
error: language version 1.2 is no longer supported; please, use version 1.4 or greater.
|
||||||
COMPILATION_ERROR
|
COMPILATION_ERROR
|
||||||
|
|||||||
@@ -2,4 +2,4 @@ $TESTDATA_DIR$/simple.kt
|
|||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
-language-version
|
-language-version
|
||||||
1.3
|
1.4
|
||||||
|
|||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
warning: language version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
warning: language version 1.4 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
OK
|
OK
|
||||||
|
|||||||
@@ -2,5 +2,5 @@ $TESTDATA_DIR$/variableInWhenSubject.kt
|
|||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
-language-version
|
-language-version
|
||||||
1.3
|
1.4
|
||||||
-XXLanguage\:+VariableDeclarationInWhenSubject
|
-XXLanguage\:+VariableDeclarationInWhenSubject
|
||||||
|
|||||||
@@ -7,5 +7,5 @@ This mode is not recommended for production use,
|
|||||||
as no stability/compatibility guarantees are given on
|
as no stability/compatibility guarantees are given on
|
||||||
compiler or generated code. Use it at your own risk!
|
compiler or generated code. Use it at your own risk!
|
||||||
|
|
||||||
warning: language version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
warning: language version 1.4 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
OK
|
OK
|
||||||
|
|||||||
@@ -2,5 +2,5 @@ $TESTDATA_DIR$/simple.kt
|
|||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
-language-version
|
-language-version
|
||||||
1.3
|
1.4
|
||||||
-XXLanguage\:+RestrictReturnStatementTarget
|
-XXLanguage\:+RestrictReturnStatementTarget
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
warning: language version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
warning: language version 1.4 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
OK
|
OK
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ This mode is not recommended for production use,
|
|||||||
as no stability/compatibility guarantees are given on
|
as no stability/compatibility guarantees are given on
|
||||||
compiler or generated code. Use it at your own risk!
|
compiler or generated code. Use it at your own risk!
|
||||||
|
|
||||||
compiler/testData/cli/jvm/inlineClass.kt:1:1: warning: 'inline' modifier is deprecated. Use 'value' instead
|
error: the following features cannot be disabled manually, because the version they first appeared in is no longer supported:
|
||||||
inline class Foo(val x: Int)
|
InlineClasses
|
||||||
^
|
COMPILATION_ERROR
|
||||||
OK
|
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
$TESTDATA_DIR$/simple.kt
|
|
||||||
-d
|
|
||||||
$TEMP_DIR$
|
|
||||||
-language-version
|
|
||||||
1.4
|
|
||||||
-api-version
|
|
||||||
1.3
|
|
||||||
-Xuse-ir
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
warning: API version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
|
||||||
OK
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
$TESTDATA_DIR$/simple.kt
|
|
||||||
-d
|
|
||||||
$TEMP_DIR$
|
|
||||||
-language-version
|
|
||||||
1.3
|
|
||||||
-Xuse-ir
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
warning: language version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
|
||||||
OK
|
|
||||||
+2
-2
@@ -2,7 +2,7 @@ $TESTDATA_DIR$/simple.kt
|
|||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
-language-version
|
-language-version
|
||||||
1.3
|
1.4
|
||||||
-api-version
|
-api-version
|
||||||
1.3
|
1.4
|
||||||
-Xuse-ir
|
-Xuse-ir
|
||||||
|
|||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
warning: language version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
warning: language version 1.4 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
OK
|
OK
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
warning: language version 1.6 is experimental, there are no backwards compatibility guarantees for new language and library features
|
|
||||||
compiler/testData/cli/jvm/jspecifyUsage.kt:2:11: error: null can not be a value of a non-null type String
|
compiler/testData/cli/jvm/jspecifyUsage.kt:2:11: error: null can not be a value of a non-null type String
|
||||||
a.foo(null)
|
a.foo(null)
|
||||||
^
|
^
|
||||||
|
|||||||
+2
-5
@@ -1,7 +1,4 @@
|
|||||||
compiler/testData/cli/jvm/jspecifyUsage.kt:2:11: warning: type mismatch: inferred type is Nothing? but String was expected
|
compiler/testData/cli/jvm/jspecifyUsage.kt:2:11: error: null can not be a value of a non-null type String
|
||||||
a.foo(null)
|
a.foo(null)
|
||||||
^
|
^
|
||||||
compiler/testData/cli/jvm/jspecifyUsage.kt:3:5: warning: unsafe use of a nullable receiver of type String?
|
COMPILATION_ERROR
|
||||||
a.bar().hashCode()
|
|
||||||
^
|
|
||||||
OK
|
|
||||||
|
|||||||
@@ -1 +1,2 @@
|
|||||||
|
warning: language version 1.4 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
OK
|
OK
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
$TESTDATA_DIR$/kt19628_13.kt
|
$TESTDATA_DIR$/kt19628_13.kt
|
||||||
-language-version
|
-language-version
|
||||||
1.3
|
1.4
|
||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
warning: language version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
warning: language version 1.4 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
compiler/testData/cli/jvm/kt19628_13.kt:5:29: error: unresolved reference: CollapsedStringAdapter
|
compiler/testData/cli/jvm/kt19628_13.kt:5:29: error: unresolved reference: CollapsedStringAdapter
|
||||||
@get:XmlJavaTypeAdapter(CollapsedStringAdapter::class)
|
@get:XmlJavaTypeAdapter(CollapsedStringAdapter::class)
|
||||||
^
|
^
|
||||||
|
|||||||
+1
-7
@@ -1,9 +1,3 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
fun test() {
|
sealed interface Polygon
|
||||||
while (true) {
|
|
||||||
when {
|
|
||||||
true -> break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+5
-1
@@ -1 +1,5 @@
|
|||||||
OK
|
warning: language version 1.4 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
|
compiler/testData/cli/jvm/languageVersion.kt:3:1: error: the feature "sealed interfaces" is only available since language version 1.5
|
||||||
|
sealed interface Polygon
|
||||||
|
^
|
||||||
|
COMPILATION_ERROR
|
||||||
|
|||||||
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
error: unknown language version: 239.42
|
error: unknown language version: 239.42
|
||||||
Supported language versions: 1.3 (DEPRECATED), 1.4, 1.5, 1.6 (EXPERIMENTAL), 1.7 (EXPERIMENTAL)
|
Supported language versions: 1.4 (DEPRECATED), 1.5, 1.6, 1.7 (EXPERIMENTAL)
|
||||||
COMPILATION_ERROR
|
COMPILATION_ERROR
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
error: language version 1.1 is no longer supported; please, use version 1.3 or greater.
|
error: language version 1.1 is no longer supported; please, use version 1.4 or greater.
|
||||||
COMPILATION_ERROR
|
COMPILATION_ERROR
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
$TEMP_DIR$ -api-version 1.3 -language-version 1.4
|
$TEMP_DIR$ -api-version 1.4 -language-version 1.5
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
warning: API version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
warning: API version 1.4 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
compiler/testData/cli/jvm/apiVersion.kt:4:5: warning: parameter 'p00' is never used
|
compiler/testData/cli/jvm/apiVersion.kt:4:5: warning: parameter 'p00' is never used
|
||||||
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
|
||||||
^
|
^
|
||||||
|
|||||||
+1
-1
@@ -2,4 +2,4 @@ $TESTDATA_DIR$/progressive
|
|||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
-language-version
|
-language-version
|
||||||
1.4
|
1.5
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
warning: language version 1.4 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
compiler/testData/cli/jvm/resultInReturnType.kt:1:5: error: 'kotlin.Result' cannot be used as a return type
|
compiler/testData/cli/jvm/resultInReturnType.kt:1:5: error: 'kotlin.Result' cannot be used as a return type
|
||||||
fun foo() = Result.success(42)
|
fun foo() = Result.success(42)
|
||||||
^
|
^
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
warning: language version 1.4 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
compiler/testData/cli/jvm/resultInReturnType.kt:1:5: error: 'kotlin.Result' cannot be used as a return type
|
compiler/testData/cli/jvm/resultInReturnType.kt:1:5: error: 'kotlin.Result' cannot be used as a return type
|
||||||
fun foo() = Result.success(42)
|
fun foo() = Result.success(42)
|
||||||
^
|
^
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ This mode is not recommended for production use,
|
|||||||
as no stability/compatibility guarantees are given on
|
as no stability/compatibility guarantees are given on
|
||||||
compiler or generated code. Use it at your own risk!
|
compiler or generated code. Use it at your own risk!
|
||||||
|
|
||||||
|
warning: language version 1.4 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
compiler/testData/cli/jvm/resultInReturnType.kt:1:5: error: 'kotlin.Result' cannot be used as a return type
|
compiler/testData/cli/jvm/resultInReturnType.kt:1:5: error: 'kotlin.Result' cannot be used as a return type
|
||||||
fun foo() = Result.success(42)
|
fun foo() = Result.success(42)
|
||||||
^
|
^
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
$TESTDATA_DIR$/standaloneSamConversionsAreEnabledWithNewInference.kt
|
|
||||||
-d
|
|
||||||
$TEMP_DIR$
|
|
||||||
-language-version
|
|
||||||
1.3
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
warning: language version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
|
||||||
compiler/testData/cli/jvm/standaloneSamConversionsAreEnabledWithNewInference.kt:9:25: error: type mismatch: inferred type is () -> Unit but Runnable was expected
|
|
||||||
ForceSam.compare(r, {})
|
|
||||||
^
|
|
||||||
compiler/testData/cli/jvm/standaloneSamConversionsAreEnabledWithNewInference.kt:10:22: error: type mismatch: inferred type is () -> Unit but Runnable was expected
|
|
||||||
ForceSam.compare({}, r)
|
|
||||||
^
|
|
||||||
COMPILATION_ERROR
|
|
||||||
+1
-1
@@ -2,4 +2,4 @@ $TESTDATA_DIR$/useDeclarationThatWasExperimentalWithoutExplicitImport.kt
|
|||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
-language-version
|
-language-version
|
||||||
1.3
|
1.4
|
||||||
+4
-6
@@ -1,7 +1,5 @@
|
|||||||
@ExperimentalStdlibApi
|
@ExperimentalStdlibApi
|
||||||
fun test(s: ArrayDeque<Int>): ArrayDeque<Int>? {
|
fun test() {
|
||||||
ArrayDeque<Int>(42)
|
"".lowercase()
|
||||||
|
1.digitToChar()
|
||||||
val x: ArrayDeque<Int>? = null
|
}
|
||||||
return x ?: s
|
|
||||||
}
|
|
||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
warning: language version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
warning: language version 1.4 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
OK
|
OK
|
||||||
|
|||||||
Vendored
+1
-1
@@ -2,6 +2,6 @@ $TESTDATA_DIR$/useDeclarationThatWasExperimentalWithoutMarker.kt
|
|||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
-language-version
|
-language-version
|
||||||
1.3
|
1.4
|
||||||
-opt-in
|
-opt-in
|
||||||
kotlin.ExperimentalStdlibApi
|
kotlin.ExperimentalStdlibApi
|
||||||
Vendored
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
warning: language version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
warning: language version 1.4 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
OK
|
OK
|
||||||
|
|||||||
+1
-1
@@ -2,4 +2,4 @@ $TESTDATA_DIR$/useDeclarationThatWasExperimentalWithoutMarker.kt
|
|||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
-language-version
|
-language-version
|
||||||
1.3
|
1.4
|
||||||
+4
-6
@@ -1,6 +1,4 @@
|
|||||||
fun test(s: ArrayDeque<Int>): ArrayDeque<Int>? {
|
fun test() {
|
||||||
ArrayDeque<Int>(42)
|
"".lowercase()
|
||||||
|
1.digitToChar()
|
||||||
val x: ArrayDeque<Int>? = null
|
}
|
||||||
return x ?: s
|
|
||||||
}
|
|
||||||
+7
-22
@@ -1,23 +1,8 @@
|
|||||||
warning: language version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
warning: language version 1.4 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
compiler/testData/cli/jvm/useDeclarationThatWasExperimentalWithoutMarker.kt:1:13: error: this declaration is experimental and its usage must be marked with '@kotlin.ExperimentalStdlibApi' or '@OptIn(kotlin.ExperimentalStdlibApi::class)'
|
compiler/testData/cli/jvm/useDeclarationThatWasExperimentalWithoutMarker.kt:2:8: error: unresolved reference: lowercase
|
||||||
fun test(s: ArrayDeque<Int>): ArrayDeque<Int>? {
|
"".lowercase()
|
||||||
^
|
^
|
||||||
compiler/testData/cli/jvm/useDeclarationThatWasExperimentalWithoutMarker.kt:1:31: error: this declaration is experimental and its usage must be marked with '@kotlin.ExperimentalStdlibApi' or '@OptIn(kotlin.ExperimentalStdlibApi::class)'
|
compiler/testData/cli/jvm/useDeclarationThatWasExperimentalWithoutMarker.kt:3:7: error: unresolved reference: digitToChar
|
||||||
fun test(s: ArrayDeque<Int>): ArrayDeque<Int>? {
|
1.digitToChar()
|
||||||
^
|
^
|
||||||
compiler/testData/cli/jvm/useDeclarationThatWasExperimentalWithoutMarker.kt:2:5: error: unresolved reference: ArrayDeque
|
|
||||||
ArrayDeque<Int>(42)
|
|
||||||
^
|
|
||||||
compiler/testData/cli/jvm/useDeclarationThatWasExperimentalWithoutMarker.kt:4:12: error: this declaration is experimental and its usage must be marked with '@kotlin.ExperimentalStdlibApi' or '@OptIn(kotlin.ExperimentalStdlibApi::class)'
|
|
||||||
val x: ArrayDeque<Int>? = null
|
|
||||||
^
|
|
||||||
compiler/testData/cli/jvm/useDeclarationThatWasExperimentalWithoutMarker.kt:5:12: error: this declaration is experimental and its usage must be marked with '@kotlin.ExperimentalStdlibApi' or '@OptIn(kotlin.ExperimentalStdlibApi::class)'
|
|
||||||
return x ?: s
|
|
||||||
^
|
|
||||||
compiler/testData/cli/jvm/useDeclarationThatWasExperimentalWithoutMarker.kt:5:14: error: this declaration is experimental and its usage must be marked with '@kotlin.ExperimentalStdlibApi' or '@OptIn(kotlin.ExperimentalStdlibApi::class)'
|
|
||||||
return x ?: s
|
|
||||||
^
|
|
||||||
compiler/testData/cli/jvm/useDeclarationThatWasExperimentalWithoutMarker.kt:5:17: error: this declaration is experimental and its usage must be marked with '@kotlin.ExperimentalStdlibApi' or '@OptIn(kotlin.ExperimentalStdlibApi::class)'
|
|
||||||
return x ?: s
|
|
||||||
^
|
|
||||||
COMPILATION_ERROR
|
COMPILATION_ERROR
|
||||||
|
|||||||
+5
@@ -0,0 +1,5 @@
|
|||||||
|
$TESTDATA_DIR$/useDeclarationThatWasExperimentalWithoutMarker2.kt
|
||||||
|
-d
|
||||||
|
$TEMP_DIR$
|
||||||
|
-language-version
|
||||||
|
1.4
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
//This test is extracted from useDeclarationThatWasExperimentalWithoutMarker.kt to check warnings in ouput
|
||||||
|
fun test(p: ULong) {
|
||||||
|
val z: ULong = p
|
||||||
|
z.inv()
|
||||||
|
}
|
||||||
+17
@@ -0,0 +1,17 @@
|
|||||||
|
warning: language version 1.4 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
|
compiler/testData/cli/jvm/useDeclarationThatWasExperimentalWithoutMarker2.kt:2:13: warning: this declaration is experimental and its usage should be marked with '@kotlin.ExperimentalUnsignedTypes' or '@OptIn(kotlin.ExperimentalUnsignedTypes::class)'
|
||||||
|
fun test(p: ULong) {
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/useDeclarationThatWasExperimentalWithoutMarker2.kt:3:12: warning: this declaration is experimental and its usage should be marked with '@kotlin.ExperimentalUnsignedTypes' or '@OptIn(kotlin.ExperimentalUnsignedTypes::class)'
|
||||||
|
val z: ULong = p
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/useDeclarationThatWasExperimentalWithoutMarker2.kt:3:20: warning: this declaration is experimental and its usage should be marked with '@kotlin.ExperimentalUnsignedTypes' or '@OptIn(kotlin.ExperimentalUnsignedTypes::class)'
|
||||||
|
val z: ULong = p
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/useDeclarationThatWasExperimentalWithoutMarker2.kt:4:5: warning: this declaration is experimental and its usage should be marked with '@kotlin.ExperimentalUnsignedTypes' or '@OptIn(kotlin.ExperimentalUnsignedTypes::class)'
|
||||||
|
z.inv()
|
||||||
|
^
|
||||||
|
compiler/testData/cli/jvm/useDeclarationThatWasExperimentalWithoutMarker2.kt:4:7: warning: this declaration is experimental and its usage should be marked with '@kotlin.ExperimentalUnsignedTypes' or '@OptIn(kotlin.ExperimentalUnsignedTypes::class)'
|
||||||
|
z.inv()
|
||||||
|
^
|
||||||
|
OK
|
||||||
+1
-1
@@ -2,5 +2,5 @@ $TESTDATA_DIR$/variableInWhenSubject.kt
|
|||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
-language-version
|
-language-version
|
||||||
1.3
|
1.4
|
||||||
-XXLanguage\:+VariableDeclarationInWhenSubject
|
-XXLanguage\:+VariableDeclarationInWhenSubject
|
||||||
|
|||||||
+1
-1
@@ -7,5 +7,5 @@ This mode is not recommended for production use,
|
|||||||
as no stability/compatibility guarantees are given on
|
as no stability/compatibility guarantees are given on
|
||||||
compiler or generated code. Use it at your own risk!
|
compiler or generated code. Use it at your own risk!
|
||||||
|
|
||||||
warning: language version 1.3 is deprecated and its support will be removed in a future version of Kotlin
|
warning: language version 1.4 is deprecated and its support will be removed in a future version of Kotlin
|
||||||
OK
|
OK
|
||||||
|
|||||||
@@ -421,16 +421,6 @@ public class CliTestGenerated extends AbstractCliTest {
|
|||||||
runTest("compiler/testData/cli/jvm/invalidMetadataVersion.args");
|
runTest("compiler/testData/cli/jvm/invalidMetadataVersion.args");
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("irApiVersionUnsupported.args")
|
|
||||||
public void testIrApiVersionUnsupported() throws Exception {
|
|
||||||
runTest("compiler/testData/cli/jvm/irApiVersionUnsupported.args");
|
|
||||||
}
|
|
||||||
|
|
||||||
@TestMetadata("irLanguageVersionUnsupported.args")
|
|
||||||
public void testIrLanguageVersionUnsupported() throws Exception {
|
|
||||||
runTest("compiler/testData/cli/jvm/irLanguageVersionUnsupported.args");
|
|
||||||
}
|
|
||||||
|
|
||||||
@TestMetadata("irSupported.args")
|
@TestMetadata("irSupported.args")
|
||||||
public void testIrSupported() throws Exception {
|
public void testIrSupported() throws Exception {
|
||||||
runTest("compiler/testData/cli/jvm/irSupported.args");
|
runTest("compiler/testData/cli/jvm/irSupported.args");
|
||||||
@@ -791,11 +781,6 @@ public class CliTestGenerated extends AbstractCliTest {
|
|||||||
runTest("compiler/testData/cli/jvm/standaloneSamConversionsAreEnabledWithNewInferenceInternalFlag.args");
|
runTest("compiler/testData/cli/jvm/standaloneSamConversionsAreEnabledWithNewInferenceInternalFlag.args");
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("standaloneSamConversionsBaseline_1_3.args")
|
|
||||||
public void testStandaloneSamConversionsBaseline_1_3() throws Exception {
|
|
||||||
runTest("compiler/testData/cli/jvm/standaloneSamConversionsBaseline_1_3.args");
|
|
||||||
}
|
|
||||||
|
|
||||||
@TestMetadata("suppressAllWarningsJvm.args")
|
@TestMetadata("suppressAllWarningsJvm.args")
|
||||||
public void testSuppressAllWarningsJvm() throws Exception {
|
public void testSuppressAllWarningsJvm() throws Exception {
|
||||||
runTest("compiler/testData/cli/jvm/suppressAllWarningsJvm.args");
|
runTest("compiler/testData/cli/jvm/suppressAllWarningsJvm.args");
|
||||||
@@ -861,6 +846,11 @@ public class CliTestGenerated extends AbstractCliTest {
|
|||||||
runTest("compiler/testData/cli/jvm/useDeclarationThatWasExperimentalWithoutMarker.args");
|
runTest("compiler/testData/cli/jvm/useDeclarationThatWasExperimentalWithoutMarker.args");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("useDeclarationThatWasExperimentalWithoutMarker2.args")
|
||||||
|
public void testUseDeclarationThatWasExperimentalWithoutMarker2() throws Exception {
|
||||||
|
runTest("compiler/testData/cli/jvm/useDeclarationThatWasExperimentalWithoutMarker2.args");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("useMixedNamedArgumentsFlag.args")
|
@TestMetadata("useMixedNamedArgumentsFlag.args")
|
||||||
public void testUseMixedNamedArgumentsFlag() throws Exception {
|
public void testUseMixedNamedArgumentsFlag() throws Exception {
|
||||||
runTest("compiler/testData/cli/jvm/useMixedNamedArgumentsFlag.args");
|
runTest("compiler/testData/cli/jvm/useMixedNamedArgumentsFlag.args");
|
||||||
@@ -974,16 +964,6 @@ public class CliTestGenerated extends AbstractCliTest {
|
|||||||
runTest("compiler/testData/cli/js/inlineCycle.args");
|
runTest("compiler/testData/cli/js/inlineCycle.args");
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("irApiVersionUnsupported.args")
|
|
||||||
public void testIrApiVersionUnsupported() throws Exception {
|
|
||||||
runTest("compiler/testData/cli/js/irApiVersionUnsupported.args");
|
|
||||||
}
|
|
||||||
|
|
||||||
@TestMetadata("irLanguageVersionUnsupported.args")
|
|
||||||
public void testIrLanguageVersionUnsupported() throws Exception {
|
|
||||||
runTest("compiler/testData/cli/js/irLanguageVersionUnsupported.args");
|
|
||||||
}
|
|
||||||
|
|
||||||
@TestMetadata("jsExtraHelp.args")
|
@TestMetadata("jsExtraHelp.args")
|
||||||
public void testJsExtraHelp() throws Exception {
|
public void testJsExtraHelp() throws Exception {
|
||||||
runTest("compiler/testData/cli/js/jsExtraHelp.args");
|
runTest("compiler/testData/cli/js/jsExtraHelp.args");
|
||||||
|
|||||||
Reference in New Issue
Block a user