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.
Fixes error when dependency variable is used as function parameter. (F…
…uelLabs#3494) When a dependency variable was passed into a function as first parameter such as `ContractId::from(contract_c::CONTRACT_ID);` an error was thrown by `type_check_method_application` while it tried to resolve the variable as a local one. The solution was to only resolve the variable if the function is expecting a mutable parameter. Closes FuelLabs#3406 Co-authored-by: João Matos <[email protected]>
- Loading branch information
Showing
2 changed files
with
28 additions
and
27 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