[MPP] Permit const actual properties for non-const expects
It's safe as not having const is more restrictive, therefore can be allowed in common. Otherwise, it's not possible to declare an expect declaration for a platform property with `const` modifier in common KT-18856
This commit is contained in:
committed by
TeamCityServer
parent
8ad06ef725
commit
b4c854429f
+2
-1
@@ -56,7 +56,8 @@ sealed class ExpectActualCompatibility<out D> {
|
||||
// Properties
|
||||
|
||||
object PropertyKind : Incompatible<Nothing>("property kinds are different (val vs var)")
|
||||
object PropertyModifiers : Incompatible<Nothing>("modifiers are different (const, lateinit)")
|
||||
object PropertyLateinitModifier : Incompatible<Nothing>("modifiers are different (lateinit)")
|
||||
object PropertyConstModifier : Incompatible<Nothing>("modifiers are different (const)")
|
||||
|
||||
// Classifiers
|
||||
|
||||
|
||||
Reference in New Issue
Block a user