chimney
chimney copied to clipboard
A way to convert between ScalaPB enum
enum Some { OPTIONA = 0; OPTIONB = 1; OPTIONC = 2; }
enum SomeOther { OPTIONA = 0; OPTIONB = 1; OPTIONC = 2; }
I am currently not able to do something like Some.transformInto[SomeOther]
. It errors out with being ambiguous.
I tried writing my own implicit class to deal with identical/similar enum attributes but I am not able to since GeneratedEnumCompanion
and GeneratedEnum
are traits.