Associated constant defined via another associated constant cannot be compiled if used in entry functions #6544
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
team:compiler
Compiler Team
If an associated constant is defined via another associated constant and used in entry functions (
main
, contract functions) compiler will emit an error that it cannot be initialized. E.g.:When fixing this issue, adjust the
associated_const_in_decls_of_other_constants
test which is linked to this issue via GitHub link in the test TODO.The text was updated successfully, but these errors were encountered: