config() doesn't work with enums
Status: Beta
Brought to you by:
canonizer
config() doesn't work when the configuration variable is of enumeration type. Somehow it thinks that the variable is of integer type.
E.g., code like the following doesn't work as expected:
enum MyEnum { | A | B | C }
// ...
public Main() : void {
config a = MyEnum.A; // compiler thinks that a is integer
// ...
}
Looks like it's because resulting type is inserted as PExpr, not as type variable