"no matching overload" getting enum name

(Dylan Nicholson) #1

I understand that enums are generally reduced to ints under Java but why can’t I at least do:

let enumNames = [ String(Enum.Blue), String(Enum.Green), String(Enum.Red) ]
return enumNames[Int(enum)]

(gives “no matching overload”)

Is there really no way at compile time of stringify a given enum value, even if it’s a fixed value?

(RemObjects) #2

Thanks, logged as bugs://75465

(RemObjects) #3

bugs://75465 got closed with status fixed.