Add annotation for context restrictions (internal only, external only, both) #1609
Labels
compiler: codegen
Everything to do with IR->ASM, register allocation, etc.
compiler: frontend
Everything to do with type checking, control flow analysis, and everything between parsing and IRgen
compiler: ir
IRgen and sway-ir including optimization passes
compiler: parser
Everything to do with the parser
language feature
Core language features visible to end users
P: high
Should be looked at if there are no critical issues left
Add an annotation that indicates that a function (not an ABI method) is supported in particular contexts: either internal only, external only, or both. By default, functions can be used in both external and internal contexts.
If a function call is reachable from an unsupported context, the compiler must emit an error.
The text was updated successfully, but these errors were encountered: