Update tests after switching to LV 2.0
Related to KT-59171
This commit is contained in:
committed by
Space Team
parent
5fb38008b7
commit
2a8b655294
Vendored
+4
-7
@@ -1,21 +1,18 @@
|
||||
-- Common --
|
||||
Exit code: OK
|
||||
Output:
|
||||
compiler/testData/multiplatform/regressions/incompatibleClassScopesWithImplTypeAlias/common.kt:3:1: warning: 'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. You can use -Xexpect-actual-classes flag to suppress this warning. Also see: https://youtrack.jetbrains.com/issue/KT-61573
|
||||
expect abstract class Writer protected constructor()
|
||||
^
|
||||
|
||||
-- JVM --
|
||||
Exit code: COMPILATION_ERROR
|
||||
Output:
|
||||
compiler/testData/multiplatform/regressions/incompatibleClassScopesWithImplTypeAlias/jvm.kt:3:18: error: actual class 'Writer' has no corresponding members for expected class members:
|
||||
compiler/testData/multiplatform/regressions/incompatibleClassScopesWithImplTypeAlias/jvm.kt:3:18: error: actual class 'actual typealias Writer = Writer' has no corresponding members for expected class members:
|
||||
|
||||
protected constructor Writer()
|
||||
expect constructor(): Writer
|
||||
|
||||
The following declaration is incompatible because visibility is different:
|
||||
protected/*protected and package*/ constructor Writer()
|
||||
constructor(): Writer
|
||||
The following declaration is incompatible because number of value parameters is different:
|
||||
protected/*protected and package*/ constructor Writer(p0: Any!)
|
||||
constructor(p0: Any!): Writer
|
||||
|
||||
actual typealias Writer = java.io.Writer
|
||||
^
|
||||
|
||||
+11
-11
@@ -5,18 +5,18 @@ Output:
|
||||
-- JVM --
|
||||
Exit code: COMPILATION_ERROR
|
||||
Output:
|
||||
compiler/testData/multiplatform/regressions/kt28385/jvm.kt:5:1: error: expecting a top level declaration
|
||||
sdax = {
|
||||
^
|
||||
compiler/testData/multiplatform/regressions/kt28385/jvm.kt:5:6: error: expecting a top level declaration
|
||||
sdax = {
|
||||
^
|
||||
compiler/testData/multiplatform/regressions/kt28385/jvm.kt:5:8: error: expecting a top level declaration
|
||||
sdax = {
|
||||
^
|
||||
compiler/testData/multiplatform/regressions/kt28385/jvm.kt:3:1: error: property must be initialized
|
||||
compiler/testData/multiplatform/regressions/kt28385/jvm.kt:3:1: error: property must be initialized.
|
||||
val dasda
|
||||
^
|
||||
compiler/testData/multiplatform/regressions/kt28385/jvm.kt:5:8: error: function declaration must have a name
|
||||
compiler/testData/multiplatform/regressions/kt28385/jvm.kt:5:1: error: syntax error: Expecting a top level declaration.
|
||||
sdax = {
|
||||
^
|
||||
compiler/testData/multiplatform/regressions/kt28385/jvm.kt:5:6: error: syntax error: Expecting a top level declaration.
|
||||
sdax = {
|
||||
^
|
||||
compiler/testData/multiplatform/regressions/kt28385/jvm.kt:5:8: error: syntax error: Expecting a top level declaration.
|
||||
sdax = {
|
||||
^
|
||||
compiler/testData/multiplatform/regressions/kt28385/jvm.kt:5:8: error: function declaration must have a name.
|
||||
sdax = {
|
||||
^
|
||||
|
||||
Reference in New Issue
Block a user