8a3fed15f8
So #KT-20398 Fixed
20 lines
695 B
Plaintext
Vendored
20 lines
695 B
Plaintext
Vendored
-- Common --
|
|
Exit code: OK
|
|
Output:
|
|
|
|
-- JVM --
|
|
Exit code: COMPILATION_ERROR
|
|
Output:
|
|
compiler/testData/multiplatform/incompatibleProperties/jvm.kt:1:8: error: actual property 'pval' has no corresponding expected declaration
|
|
The following declaration is incompatible because property kinds are different (val vs var):
|
|
public expect val pval: String
|
|
|
|
actual var pval: String = ""
|
|
^
|
|
compiler/testData/multiplatform/incompatibleProperties/jvm.kt:2:8: error: actual property 'pvar' has no corresponding expected declaration
|
|
The following declaration is incompatible because property kinds are different (val vs var):
|
|
public expect var pvar: String
|
|
|
|
actual val pvar: String = ""
|
|
^
|