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 issue with generic trait impls using the same method names. (Fu…
…elLabs#3676) When two generic trait implementation use the same method name with a different type parameter an error such as `Duplicate definition for method "convert" for type "A"` would occur. This fix does remove the error when a method with diferent type parameters is added to another trait implementation with different type parameters. The fix also ensures that when possible find_method_for_type returns a method whose parameters types matches the given arguments expressions return types. Closes FuelLabs#3633. --------- Co-authored-by: Mohammad Fawaz <[email protected]>
- Loading branch information
1 parent
880c22f
commit 5e67357
Showing
3 changed files
with
93 additions
and
6 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