[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
-2
@@ -46,11 +46,11 @@ class ConstImpl {
|
||||
// actuals
|
||||
|
||||
actual typealias NonConstNonConst = NonConstImpl
|
||||
actual typealias <!NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS!>NonConstConst<!> = ConstImpl
|
||||
actual typealias NonConstConst = ConstImpl
|
||||
actual typealias <!NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS!>ConstNonConst<!> = NonConstImpl
|
||||
actual typealias ConstConst = ConstImpl
|
||||
|
||||
actual val NonConstNonConstTl: Int get() = 42
|
||||
<!ACTUAL_WITHOUT_EXPECT!>actual const<!> val NonConstConstTl: Int = 42
|
||||
actual const val NonConstConstTl: Int = 42
|
||||
<!ACTUAL_WITHOUT_EXPECT!>actual<!> val ConstNonConstTl: Int get() = 42
|
||||
actual const val ConstConstTl: Int = 42
|
||||
|
||||
Reference in New Issue
Block a user