[Commonizer] Enable Optimistic Number Commonization by default
Initially it was restricted to work with type aliases only KT-48455 see test `test property with aliased number return type` This limitation should be lifted now in order to fix KT-48568 ^KT-48568 Verification Pending
This commit is contained in:
native/commonizer/testData/callableMemberCommonization/returnTypes/commonized/common/package_root.kt
Vendored
+6
@@ -27,6 +27,12 @@ expect fun function5(): Planet
|
||||
expect fun function6(): Planet
|
||||
expect fun function7(): C
|
||||
|
||||
// Optimistic Number Commonization: KT-48455, KT-48568
|
||||
expect val propertyWithMismatchedType1: Int
|
||||
expect val propertyWithMismatchedType2: Short
|
||||
expect fun functionWithMismatchedType1(): Int
|
||||
expect fun functionWithMismatchedType2(): Short
|
||||
|
||||
expect class Box<T>(value: T) {
|
||||
val value: T
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user