Dominaezzz
02/15/2019, 7:04 PMelect
02/16/2019, 7:15 AMDominaezzz
02/16/2019, 10:47 AMenum class SomeEnum {
A, B, C
}
// Current solution
inline val SomeEnum.Companion.A_OLD: SomeEnum get() = SomeEnum.A
// Thus allowing deprecation/renaming of A_OLD to A
SomeEnum.A // Works
SomeEnum.A_OLD // Also works, even though it's not defined inside enum.
Dico
02/16/2019, 3:34 PMDominaezzz
02/16/2019, 3:36 PMDico
02/16/2019, 3:46 PM@Deprecated
to the old thing, wherever you put itDominaezzz
02/16/2019, 3:52 PMval value: UInt
property, both A
and A_OLD
have the same value
and I was hoping to make them point to the same entry instead of just having the same value
.Dico
02/16/2019, 4:08 PMequals
in enums.Dominaezzz
02/16/2019, 4:10 PMDico
02/16/2019, 4:11 PMDominaezzz
02/16/2019, 4:13 PMDico
02/16/2019, 4:17 PMDominaezzz
02/16/2019, 4:23 PM