Migration to expect/actual: fix multiplatform integration tests
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
header class Printer {
|
||||
expect class Printer {
|
||||
fun print(message: String)
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
impl class Printer {
|
||||
impl fun print(message: String) {
|
||||
actual class Printer {
|
||||
actual fun print(message: String) {
|
||||
println("JS says: " + message)
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
impl class Printer {
|
||||
impl fun print(message: String) {
|
||||
actual class Printer {
|
||||
actual fun print(message: String) {
|
||||
println("JVM says: " + message)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user