[MPP] Apply @UnsafeNumber to functions and properties

KT-51224
KT-51215
This commit is contained in:
Pavel Kirpichenkov
2022-02-14 10:41:03 +03:00
committed by teamcity
parent f8a1395a03
commit 6674c3f482
14 changed files with 216 additions and 75 deletions
@@ -22,7 +22,11 @@ expect val property20: Char
// Optimistic Number Commonization: KT-48455, KT-48568
// Mismatched const types should be commonized as expect val's
@kotlinx.cinterop.UnsafeNumber(["js: kotlin.Short", "jvm: kotlin.Byte"])
expect val property22: Byte
@kotlinx.cinterop.UnsafeNumber(["js: kotlin.Int", "jvm: kotlin.Short"])
expect val property23: Short
@kotlinx.cinterop.UnsafeNumber(["js: kotlin.Long", "jvm: kotlin.Int"])
expect val property24: Int
@kotlinx.cinterop.UnsafeNumber(["js: kotlin.Float", "jvm: kotlin.Double"])
expect val property26: Float