Migration to expect/actual: fix multiplatform integration tests
This commit is contained in:
Vendored
+1
-1
@@ -1,3 +1,3 @@
|
||||
package test
|
||||
|
||||
header abstract class Writer protected constructor()
|
||||
expect abstract class Writer protected constructor()
|
||||
|
||||
Vendored
+1
-1
@@ -1,3 +1,3 @@
|
||||
package test
|
||||
|
||||
impl typealias Writer = java.io.Writer
|
||||
actual typealias Writer = java.io.Writer
|
||||
|
||||
Vendored
+1
-1
@@ -14,5 +14,5 @@ compiler/testData/multiplatform/regressions/incompatibleClassScopesWithImplTypeA
|
||||
The following declaration is incompatible because number of value parameters is different:
|
||||
protected/*protected and package*/ constructor Writer(p0: Any!)
|
||||
|
||||
impl typealias Writer = java.io.Writer
|
||||
actual typealias Writer = java.io.Writer
|
||||
^
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package test
|
||||
|
||||
header fun stringToByteArray(str: String): ByteArray
|
||||
expect fun stringToByteArray(str: String): ByteArray
|
||||
|
||||
header var prop: String
|
||||
expect var prop: String
|
||||
|
||||
fun ttt() {}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package test
|
||||
|
||||
impl fun stringToByteArray(str: String): ByteArray = byteArrayOf()
|
||||
actual fun stringToByteArray(str: String): ByteArray = byteArrayOf()
|
||||
|
||||
impl var prop: String = ""
|
||||
actual var prop: String = ""
|
||||
|
||||
Reference in New Issue
Block a user