[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
@@ -19,3 +19,10 @@ const val property17 = "42"
expect val property18: String
const val property19: Char = 42.toChar()
expect val property20: Char
// Optimistic Number Commonization: KT-48455, KT-48568
// Mismatched const types should be commonized as expect val's
expect val property22: Byte
expect val property23: Short
expect val property24: Int
expect val property26: Float