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,2 +1,2 @@
header val pval: String
header var pvar: String
expect val pval: String
expect var pvar: String
@@ -1,2 +1,2 @@
impl var pval: String = ""
impl val pvar: String = ""
actual var pval: String = ""
actual val pvar: String = ""
@@ -7,13 +7,13 @@ Exit code: COMPILATION_ERROR
Output:
compiler/testData/multiplatform/incompatibleProperties/jvm.kt:1:1: error: 'impl' property 'pval' has no corresponding 'header' declaration
The following declaration is incompatible because property kinds are different (val vs var):
public header val pval: String
public expect val pval: String
impl var pval: String = ""
actual var pval: String = ""
^
compiler/testData/multiplatform/incompatibleProperties/jvm.kt:2:1: error: 'impl' property 'pvar' has no corresponding 'header' declaration
The following declaration is incompatible because property kinds are different (val vs var):
public header var pvar: String
public expect var pvar: String
impl val pvar: String = ""
actual val pvar: String = ""
^