2127b2ce68
KT-61573 ^KT-61712 Fixed Review: https://jetbrains.team/p/kt/reviews/12044/files It's a follow up commit According our guidelines, it must be in Beta https://kotlinlang.org/docs/components-stability.html#stability-of-subcomponents And the whole multiplatform was in Beta, so we can't make part of the multiplatform to have lower stability level
26 lines
1.1 KiB
Plaintext
Vendored
26 lines
1.1 KiB
Plaintext
Vendored
-- Common --
|
|
Exit code: OK
|
|
Output:
|
|
compiler/testData/multiplatform/missingOverload/common.kt:1: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 class Foo {
|
|
^
|
|
|
|
-- JVM --
|
|
Exit code: COMPILATION_ERROR
|
|
Output:
|
|
compiler/testData/multiplatform/missingOverload/common.kt:7:13: error: expected function 'g' has no actual declaration in module <main> for JVM
|
|
The following declaration is incompatible because parameter types are different:
|
|
public actual fun g(a: Any): Unit
|
|
|
|
expect fun g(s: String)
|
|
^
|
|
compiler/testData/multiplatform/missingOverload/jvm.kt:1:14: error: actual class 'Foo' has no corresponding members for expected class members:
|
|
|
|
public final expect fun f(a: Any): Unit
|
|
|
|
The following declaration is incompatible because parameter types are different:
|
|
public final actual fun f(s: String): Unit
|
|
|
|
actual class Foo {
|
|
^
|