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
+6
-18
@@ -1,35 +1,23 @@
|
||||
-- Common --
|
||||
Exit code: OK
|
||||
Output:
|
||||
compiler/testData/multiplatform/inlineClasses/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 inline class Foo1(val x: Int)
|
||||
^
|
||||
compiler/testData/multiplatform/inlineClasses/common.kt:3:8: warning: 'inline' modifier is deprecated. Use 'value' instead
|
||||
expect inline class Foo1(val x: Int)
|
||||
^
|
||||
compiler/testData/multiplatform/inlineClasses/common.kt:4: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 inline class Foo2(val y: String)
|
||||
^
|
||||
compiler/testData/multiplatform/inlineClasses/common.kt:4:8: warning: 'inline' modifier is deprecated. Use 'value' instead
|
||||
expect inline class Foo2(val y: String)
|
||||
^
|
||||
|
||||
-- JVM --
|
||||
Exit code: COMPILATION_ERROR
|
||||
Output:
|
||||
compiler/testData/multiplatform/inlineClasses/jvm.kt:5:1: error: actual class 'Foo2' has no corresponding expected declaration
|
||||
compiler/testData/multiplatform/inlineClasses/jvm.kt:5:14: error: 'actual class Foo2 : Any' has no corresponding expected declaration
|
||||
The following declaration is incompatible because modifiers are different (companion, inner, inline, value):
|
||||
public final expect inline class Foo2
|
||||
expect class Foo2 : Any
|
||||
|
||||
actual class Foo2 actual constructor(actual val y: String)
|
||||
^
|
||||
^
|
||||
|
||||
-- JS --
|
||||
Exit code: COMPILATION_ERROR
|
||||
Output:
|
||||
compiler/testData/multiplatform/inlineClasses/js.kt:5:1: error: actual class 'Foo2' has no corresponding expected declaration
|
||||
compiler/testData/multiplatform/inlineClasses/js.kt:5:14: error: 'actual class Foo2 : Any' has no corresponding expected declaration
|
||||
The following declaration is incompatible because modifiers are different (companion, inner, inline, value):
|
||||
public final expect inline class Foo2
|
||||
expect class Foo2 : Any
|
||||
|
||||
actual class Foo2 actual constructor(actual val y: String)
|
||||
^
|
||||
^
|
||||
|
||||
Reference in New Issue
Block a user