Update tests after switching to LV 1.9

This commit is contained in:
Dmitriy Novozhilov
2023-01-23 11:34:48 +02:00
committed by Space Team
parent 66544a4e00
commit 88efa6bfb6
279 changed files with 1520 additions and 1239 deletions
-1
View File
@@ -1,3 +1,2 @@
warning: language version 1.9 is experimental, there are no backwards compatibility guarantees for new language and library features
error: old Kotlin/JS compiler is no longer supported. Please migrate to the new JS IR backend
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
+1 -1
View File
@@ -1,3 +1,3 @@
error: unknown API version: 239.42
Supported API versions: 1.3 (deprecated), 1.4 (deprecated), 1.5, 1.6, 1.7, 1.8, 1.9 (experimental), 2.0 (experimental)
Supported API versions: 1.4 (deprecated), 1.5 (deprecated), 1.6, 1.7, 1.8, 1.9, 2.0 (experimental)
COMPILATION_ERROR
+1 -1
View File
@@ -1,4 +1,4 @@
warning: API version 1.4 is deprecated and its support will be removed in a future version of Kotlin
warning: language version 1.5 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
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.4 is deprecated and its support will be removed in a future version of Kotlin
warning: language version 1.5 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
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
^
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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: -Xsingle " quote " escaped ' sequence /
warning: API version 1.4 is deprecated and its support will be removed in a future version of Kotlin
warning: language version 1.5 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
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
^
@@ -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
+1 -1
View File
@@ -7,7 +7,7 @@ This mode is not recommended for production use,
as no stability/compatibility guarantees are given on
compiler or generated code. Use it at your own risk!
compiler/testData/cli/jvm/enumEntriesForJavaNotEnabled.kt:4:49: error: the feature "enum entries" is only available since language version 1.9
compiler/testData/cli/jvm/enumEntriesForJavaNotEnabled.kt:4:49: error: the feature "enum entries" is disabled
val entries = java.util.concurrent.TimeUnit.entries
^
COMPILATION_ERROR
+1 -1
View File
@@ -7,7 +7,7 @@ This mode is not recommended for production use,
as no stability/compatibility guarantees are given on
compiler or generated code. Use it at your own risk!
compiler/testData/cli/jvm/enumEntriesNotEnabled.kt:7:26: error: the feature "enum entries" is only available since language version 1.9
compiler/testData/cli/jvm/enumEntriesNotEnabled.kt:7:26: error: the feature "enum entries" is disabled
val entries = MyEnum.entries
^
COMPILATION_ERROR
+1
View File
@@ -1,3 +1,4 @@
warning: language version 1.5 is deprecated and its support will be removed in a future version of Kotlin
compiler/testData/cli/jvm/jspecifyUsage.kt:2:11: warning: type mismatch: inferred type is Nothing? but String was expected
a.foo(null)
^
+2 -5
View File
@@ -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)
^
compiler/testData/cli/jvm/jspecifyUsage.kt:3:5: warning: unsafe use of a nullable receiver of type String?
a.bar().hashCode()
^
OK
COMPILATION_ERROR
+1
View File
@@ -1 +1,2 @@
warning: language version 1.5 is deprecated and its support will be removed in a future version of Kotlin
OK
+1
View File
@@ -7,5 +7,6 @@ This mode is not recommended for production use,
as no stability/compatibility guarantees are given on
compiler or generated code. Use it at your own risk!
warning: language version 1.5 is deprecated and its support will be removed in a future version of Kotlin
info: using preview Java language features
OK
+1
View File
@@ -7,6 +7,7 @@ This mode is not recommended for production use,
as no stability/compatibility guarantees are given on
compiler or generated code. Use it at your own risk!
warning: language version 1.5 is deprecated and its support will be removed in a future version of Kotlin
compiler/testData/cli/jvm/jvmRecord.kt:1:1: error: using @JvmRecord is only allowed with -jvm-target 16 or later (or -jvm-target 15 with the -Xjvm-enable-preview flag enabled)
@JvmRecord
^
@@ -1,2 +1,2 @@
error: language version 1.0 is no longer supported; please, use version 1.3 or greater.
error: language version 1.0 is no longer supported; please, use version 1.4 or greater.
COMPILATION_ERROR
+1 -1
View File
@@ -1,3 +1,3 @@
error: unknown language version: 239.42
Supported language versions: 1.3 (deprecated), 1.4 (deprecated), 1.5, 1.6, 1.7, 1.8, 1.9 (experimental), 2.0 (experimental)
Supported language versions: 1.4 (deprecated), 1.5 (deprecated), 1.6, 1.7, 1.8, 1.9, 2.0 (experimental)
COMPILATION_ERROR
+1 -1
View File
@@ -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
+1 -1
View File
@@ -1,4 +1,4 @@
warning: API version 1.4 is deprecated and its support will be removed in a future version of Kotlin
warning: language version 1.5 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
p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A,
^
+1
View File
@@ -1,3 +1,4 @@
warning: language version is automatically inferred to 1.5 when using the old JVM backend. Consider specifying -language-version explicitly, or remove -Xuse-old-backend
warning: language version 1.5 is deprecated and its support will be removed in a future version of Kotlin
error: -Xuse-old-backend is no longer supported. Please migrate to the new JVM IR backend
COMPILATION_ERROR
+1
View File
@@ -1,3 +1,4 @@
warning: language version is automatically inferred to 1.5 when using the old JVM backend. Consider specifying -language-version explicitly, or remove -Xuse-old-backend
warning: language version 1.5 is deprecated and its support will be removed in a future version of Kotlin
warning: -Xuse-old-backend is no longer supported. Please migrate to the new JVM IR backend
OK
+1
View File
@@ -1,3 +1,4 @@
warning: language version 1.5 is deprecated and its support will be removed in a future version of Kotlin
compiler/testData/cli/jvm/progressive/tailrecOnVirtualMember.kt:2:5: error: tailrec is not allowed on open members
tailrec open fun foo(x: Int) {}
^
@@ -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
@@ -1 +1,2 @@
warning: language version 1.5 is deprecated and its support will be removed in a future version of Kotlin
OK