7eab4b672d
#KT-64989
20 lines
703 B
Plaintext
Vendored
20 lines
703 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 = ""
|
|
^^^^
|