Beef
Beef copied to clipboard
Enum type inference doesn't work in mixin call
Enum type inference doesn't work with enums in a mixin parameter, even if the type is specified. Example:
mixin myMixin(StringSplitOptions value)
{
}
myMixin!(.None); // Error
myMixin!(StringSplitOptions.None); // Ok
Just want to bump this to say this bug is still present as of the latest nightly build. Attempting to use enum type inference for a mixin argument results in this compile error:
ERROR: Unqualified dot syntax can only be used when the result type can be inferred at line ...