Associated constants must be declared in order if they are mutually dependent #6537
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
Unlike module constants that can be used in declarations of other module constants regardless of their declaration order, associated constants must be declared in order if they are mutually dependent.
E.g., this works:
But this doesn't:
When fixing this issue, adjust the
recursive_const_...
tests which are linked to this issue via GitHub link in the test TODO.The text was updated successfully, but these errors were encountered: