LV20: fix CliTestGenerated testdata for changed K2 error reporting

This commit is contained in:
Ilya Chernikov
2023-08-13 14:40:30 +02:00
committed by Space Team
parent e29cd3d0b3
commit 9fed50c03b
3 changed files with 6 additions and 7 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
compiler/testData/cli/jvm/requireKotlinCompilerVersion.kt:12:20: error: 'Foo' is only available since Kotlin 9.9.90 and cannot be used in Kotlin $VERSION$ compiler/testData/cli/jvm/requireKotlinCompilerVersion.kt:12:8: error: 'class Foo : Any' is only available since Kotlin 9.9.90 and cannot be used in Kotlin $VERSION$.
import test.access.Foo import test.access.Foo
^ ^
compiler/testData/cli/jvm/requireKotlinCompilerVersion.kt:15:5: error: 'Foo' is only available since Kotlin 9.9.90 and cannot be used in Kotlin $VERSION$ compiler/testData/cli/jvm/requireKotlinCompilerVersion.kt:15:5: error: 'constructor(): Foo' is only available since Kotlin 9.9.90 and cannot be used in Kotlin $VERSION$.
Foo() Foo()
^ ^
COMPILATION_ERROR COMPILATION_ERROR
@@ -1,4 +1,3 @@
warning: language version 2.0 is experimental, there are no backwards compatibility guarantees for new language and library features
compiler/testData/cli/jvm/requireKotlinCompilerVersion.kt:12:8: error: 'class Foo : Any' is only available since Kotlin 9.9.90 and cannot be used in Kotlin $VERSION$. compiler/testData/cli/jvm/requireKotlinCompilerVersion.kt:12:8: error: 'class Foo : Any' is only available since Kotlin 9.9.90 and cannot be used in Kotlin $VERSION$.
import test.access.Foo import test.access.Foo
^ ^
@@ -1,4 +1,4 @@
compiler/testData/cli/metadata/inheritorOfExpectSealedClass/common-3.kt:1:17: error: inheritance of sealed classes or interfaces from different module is prohibited compiler/testData/cli/metadata/inheritorOfExpectSealedClass/common-2.kt:1:21: error: actual class Base : Any has no corresponding expected declaration
class Derived : Base() actual sealed class Base
^ ^
COMPILATION_ERROR COMPILATION_ERROR