[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:
Anton Lakotka
2022-01-04 11:38:57 +01:00
committed by Space
parent e37ab3dfda
commit 49ba3d239c
5 changed files with 16 additions and 8 deletions
@@ -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
}