[Test] Add CLI tests for platform checkers in MPP
^KT-58881
This commit is contained in:
committed by
Nikolay Lunyak
parent
e8f5e35a86
commit
b71797383f
@@ -8,6 +8,9 @@ This mode is not recommended for production use,
|
||||
as no stability/compatibility guarantees are given on
|
||||
compiler or generated code. Use it at your own risk!
|
||||
|
||||
compiler/testData/cli/jvm/firMultiplatformCompilationWithError/common.kt:7:1: error: class 'CommonClass' is not abstract and does not implement abstract member 'foo'.
|
||||
class CommonClass : B
|
||||
^
|
||||
compiler/testData/cli/jvm/firMultiplatformCompilationWithError/jvm.kt:1:18: error: 'actual interface A : Any' has no corresponding members for expected class members:
|
||||
|
||||
expect fun foo(): Unit
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
expect interface A {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
expect interface B
|
||||
|
||||
class CommonClass : B
|
||||
|
||||
@@ -1 +1,5 @@
|
||||
actual interface A
|
||||
|
||||
actual interface B {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user