Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing a generic types resolution bug #736

Merged
merged 11 commits into from
Feb 6, 2022

Conversation

mohammadfawaz
Copy link
Contributor

@mohammadfawaz mohammadfawaz commented Feb 2, 2022

Fixes: #716
Basically, I'm calling monomorphize() when resolving a generic type so that the original type doesn't get modified. Also copying the methods of the original type to the new type.

@mohammadfawaz mohammadfawaz requested a review from sezna as a code owner February 2, 2022 22:46
@mohammadfawaz mohammadfawaz changed the title Generic types resolution bug Fixing a generic types resolution bug Feb 2, 2022
@mohammadfawaz mohammadfawaz added compiler General compiler. Should eventually become more specific as the issue is triaged bug Something isn't working labels Feb 2, 2022
@mohammadfawaz mohammadfawaz self-assigned this Feb 2, 2022
@mohammadfawaz mohammadfawaz marked this pull request as draft February 3, 2022 01:41
@mohammadfawaz mohammadfawaz marked this pull request as ready for review February 3, 2022 17:22
@mohammadfawaz mohammadfawaz requested a review from otrho February 3, 2022 21:10
Copy link
Contributor

@sezna sezna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM -- one nit

sway-core/src/semantic_analysis/namespace.rs Show resolved Hide resolved
@mohammadfawaz mohammadfawaz requested a review from sezna February 6, 2022 15:52
@sezna sezna merged commit 030e00a into FuelLabs:master Feb 6, 2022
@mohammadfawaz mohammadfawaz deleted the generic_types_resolution_bug branch February 6, 2022 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working compiler General compiler. Should eventually become more specific as the issue is triaged
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Can't return a Result from 2 functions
2 participants