sway icon indicating copy to clipboard operation
sway copied to clipboard

Add annotation for context restrictions (internal only, external only, both)

Open adlerjohn opened this issue 2 years ago • 1 comments

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.

adlerjohn avatar May 19 '22 12:05 adlerjohn

Duplicate of https://github.com/FuelLabs/sway/issues/963?

tritao avatar Aug 01 '22 14:08 tritao

:yes:

adlerjohn avatar Aug 15 '22 00:08 adlerjohn