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.
Generic impl selfs and associated fixes (FuelLabs#913)
* Fix issue where function bodies were not being monomorphized. * Implement part of generic impl self. * Remove print statements. * WIP * Clippy warnings. * Create a CompilerWarning to alert users when they have used a type parameter that is not in upper snake case form. * Prep for change to how type ascriptions are used. * Implement custom hash type. * Fix non-deterministic bug. * documentation * Introduce types into Custom type. * Make distinction between type params and type args in parser. Remove stale implementation of generic traits and generic supertraits. * WIP * Actually use type ascriptions. * update * Add actual TypeArguments. * Have function application use TypeArgument. * Improve how types are unified for structs. * Evaluate type ascriptions recursively. * Fix broken component. * Done for structs, minus some edge cases. * Fix type ascription usage. * Fix bug with how enums are sized. * Generic impl selfs works for enums. * Turbofish works. * fix bug * Revert changes to lock file. * Fix IR test cases. * Fix bug. * Tidy up test case. * PR feedback.
- Loading branch information
1 parent
f8a8ea6
commit dff4d64
Showing
62 changed files
with
3,171 additions
and
1,670 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
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.