Migration to expect/actual: fix multiplatform integration tests

This commit is contained in:
Mikhail Glukhikh
2017-09-15 10:44:43 +03:00
parent 27615209ed
commit 85d6a4d1af
65 changed files with 394 additions and 394 deletions
@@ -1,3 +1,3 @@
package test
header abstract class Writer protected constructor()
expect abstract class Writer protected constructor()
@@ -1,3 +1,3 @@
package test
impl typealias Writer = java.io.Writer
actual typealias Writer = java.io.Writer
@@ -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() {}
+2 -2
View File
@@ -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 = ""