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

less strict ambiguity errors for fields? #3363

Open
michaellilltokiwa opened this issue Jul 11, 2024 · 0 comments
Open

less strict ambiguity errors for fields? #3363

michaellilltokiwa opened this issue Jul 11, 2024 · 0 comments
Labels
enhancement New feature or request front end related to the front end until .fum file is created: call and type resolution, type checking, etc. question A decision or information is required

Comments

@michaellilltokiwa
Copy link
Member

currently this yields an ambiguity error:

ex is
  my_feat(x i32) =>
    x + 3
  x := 3

but maybe this is too inconvenient and the field in the current outer or even closest outer should be picked.
Otherwise one would have to specify my_feat.this.x + 3 or ex.this.x + 3

@michaellilltokiwa michaellilltokiwa added enhancement New feature or request question A decision or information is required front end related to the front end until .fum file is created: call and type resolution, type checking, etc. labels Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request front end related to the front end until .fum file is created: call and type resolution, type checking, etc. question A decision or information is required
Projects
None yet
Development

No branches or pull requests

1 participant