Report NO_ACTUAL_FOR_EXPECT etc. on relevant declaration
So #KT-20398 Fixed
This commit is contained in:
@@ -5,15 +5,15 @@ Output:
|
||||
-- JVM --
|
||||
Exit code: COMPILATION_ERROR
|
||||
Output:
|
||||
compiler/testData/multiplatform/incompatibleProperties/jvm.kt:1:1: error: actual property 'pval' has no corresponding expected declaration
|
||||
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:1: error: actual property 'pvar' has no corresponding expected declaration
|
||||
^
|
||||
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 = ""
|
||||
^
|
||||
^
|
||||
|
||||
Reference in New Issue
Block a user