Properly support nested items or emit not-implemented error #6919
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
Currently, inside of the compiler we support nested items and only nested functions are explicitly not supported and having them in code will emit a not-implemented error. For other kind of items, the level of support varies and can end in different kinds of issues.
E.g., the below example compiles with errors shown:
On the other hand, removing the outer
S
results in an ICE:The text was updated successfully, but these errors were encountered: