01fc708a0f
^KT-61573 Fixed Review: https://jetbrains.team/p/kt/reviews/11969/timeline Tests: - MultiPlatformIntegrationTestGenerated - CliTestGenerated - MultiPlatformIntegrationTestGenerated - DiagnosticTestGenerated.Multiplatform - FirLightTreeOldFrontendDiagnosticsTestGenerated Also add -Xexpect-actual-classes flag to all necessary ./libraries/* modules Otherwise compilation of those modules failes because of `-Werror`
36 lines
1.7 KiB
Plaintext
Vendored
36 lines
1.7 KiB
Plaintext
Vendored
-- Common --
|
|
Exit code: OK
|
|
Output:
|
|
compiler/testData/multiplatform/inlineClasses/common.kt:3:1: warning: the expect/actual classes (including interfaces, objects, annotations, enums, actual typealiases) are an experimental feature. You can use -Xexpect-actual-classes flag to suppress this warning.
|
|
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: the expect/actual classes (including interfaces, objects, annotations, enums, actual typealiases) are an experimental feature. You can use -Xexpect-actual-classes flag to suppress this warning.
|
|
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
|
|
The following declaration is incompatible because modifiers are different (companion, inner, inline, value):
|
|
public final expect inline class Foo2
|
|
|
|
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
|
|
The following declaration is incompatible because modifiers are different (companion, inner, inline, value):
|
|
public final expect inline class Foo2
|
|
|
|
actual class Foo2 actual constructor(actual val y: String)
|
|
^
|