Incorrect error messages in enum instantiation #5583
Labels
bug
Something isn't working
compiler: frontend
Everything to do with type checking, control flow analysis, and everything between parsing and IRgen
compiler
General compiler. Should eventually become more specific as the issue is triaged
The following example generates incorrect error messages:
The reason for the first two misleading messages is taking the LHS enum as the type annotation source for the RHS without checking that it is the same enum type.
The text was updated successfully, but these errors were encountered: