forked from FuelLabs/sway
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds support for
Enum::<T>::Variant
. (FuelLabs#3795)
This commit changes `TypeBinding` to contain also `prefix_type_arguments` this allows us to have both `Enum::<T>::Variant` compiled with `prefix_type_arguments` and `Enum::Variant::<T>` compiled with `type_arguments`. In case both are used an error is thrown. Errors are also thrown when `prefix_type_arguments` is used with constants or functions. Tests included for this. Also added an error when `type_arguments` is used with constants. Closes FuelLabs#3585 --------- Co-authored-by: Mohammad Fawaz <[email protected]>
- Loading branch information
1 parent
c6e35fb
commit ba1300d
Showing
26 changed files
with
325 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.