Files
kotlin-fork/compiler/testData/multiplatform/incompatibleProperties/output.txt
T
Mikhail Glukhikh 2a8b655294 Update tests after switching to LV 2.0
Related to KT-59171
2023-09-19 15:46:27 +00:00

20 lines
697 B
Plaintext
Vendored

-- Common --
Exit code: OK
Output:
-- JVM --
Exit code: COMPILATION_ERROR
Output:
compiler/testData/multiplatform/incompatibleProperties/jvm.kt:1:12: error: 'actual var pval: String' has no corresponding expected declaration
The following declaration is incompatible because property kinds are different (val vs var):
expect val pval: String
actual var pval: String = ""
^
compiler/testData/multiplatform/incompatibleProperties/jvm.kt:2:12: error: 'actual val pvar: String' has no corresponding expected declaration
The following declaration is incompatible because property kinds are different (val vs var):
expect var pvar: String
actual val pvar: String = ""
^