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.
Fix CopyTypes implementation for
DeclarationId
. (FuelLabs#2874)
This fixes a regression in CopyTypes which was preventing the mutated declarations from reaching the `DeclarationEngine`. After calling `copy_types` on the declaration we now replace it inside the declaration engine. Notes: this was found as part of debugging a test failure for FuelLabs#2786. This fix makes the test pass the type checking phase which it was failing, and now fails in IR gen, so there's probably still issues around this or another related area.
- Loading branch information
Showing
3 changed files
with
29 additions
and
3 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