Open Stitchous opened 11 years ago
looks like Nemerle doesn't support this kind of enum fields initializators too
If you look here: https://github.com/rsdn/nemerle/blob/master/ncc/hierarchy/TypeBuilder.n#L1900 Seems enum value is not counted as constant.
sometimes it is counted as constant and even as literal but with different type than current enum underlying type, so lit.WithType (underlying_enum_type) returns None
this C# code
successfully compiles by csc, but produces following message in Nemerle project:
error : supplied value (0 :> E1) cannot be converted to int and isn't valid as enum field initializer