Migration to expect/actual: fix multiplatform highlighting tests
This commit is contained in:
Vendored
+3
-3
@@ -1,4 +1,4 @@
|
||||
header class My {
|
||||
expect class My {
|
||||
|
||||
fun foo(): Int
|
||||
|
||||
@@ -6,7 +6,7 @@ header class My {
|
||||
|
||||
}
|
||||
|
||||
header class Your {
|
||||
expect class Your {
|
||||
|
||||
fun foo(): Int
|
||||
|
||||
@@ -14,7 +14,7 @@ header class Your {
|
||||
|
||||
}
|
||||
|
||||
header class His {
|
||||
expect class His {
|
||||
|
||||
fun foo(): Int
|
||||
|
||||
|
||||
+8
-8
@@ -1,20 +1,20 @@
|
||||
impl class <error>My</error> {
|
||||
actual class <error>My</error> {
|
||||
|
||||
impl fun foo() = 42
|
||||
actual fun foo() = 42
|
||||
}
|
||||
|
||||
impl class Your {
|
||||
actual class Your {
|
||||
|
||||
impl fun foo() = 13
|
||||
actual fun foo() = 13
|
||||
|
||||
<error>impl fun bar(arg: Int)</error> = arg
|
||||
<error>actual fun bar(arg: Int)</error> = arg
|
||||
|
||||
}
|
||||
|
||||
impl class His {
|
||||
actual class His {
|
||||
|
||||
impl fun foo() = 7
|
||||
actual fun foo() = 7
|
||||
|
||||
impl fun bar(arg: Int) = arg == foo()
|
||||
actual fun bar(arg: Int) = arg == foo()
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user