I have a module with an enum defined in it.
module myModule
@enum type A B B C D
end
type1 = myModule.A
Now I want to declare an instance of this enum type but I only have a string specifying which type it is. I tried the following:
str = "B"
type2 = eval(:(myModule.Symbol($str)))
But I get a warning message which I do not quite understand:
WARNING: replacing module myModule.
and the type of type2 is also just a Symbol.