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

No add method found on a number without annotations where expected add result is not u64 #6961

Open
ironcev opened this issue Feb 25, 2025 · 1 comment
Labels
bug Something isn't working compiler: frontend Everything to do with type checking, control flow analysis, and everything between parsing and IRgen compiler General compiler. Should eventually become more specific as the issue is triaged team:compiler Compiler Team

Comments

@ironcev
Copy link
Member

ironcev commented Feb 25, 2025

This program:

library;
const C: u8 = 11 + 22;

results in the following error:

1 | library;
2 | const C: u8 = 11 + 22;
  |                  ^ No method "add(u64, numeric) -> u8" found for type "u64".  
Matching method:
    add(u64, u64) -> u64 in u64
@ironcev ironcev added bug Something isn't working compiler General compiler. Should eventually become more specific as the issue is triaged compiler: frontend Everything to do with type checking, control flow analysis, and everything between parsing and IRgen team:compiler Compiler Team labels Feb 25, 2025
@aditya0497
Copy link

Hi, I would like to work on this bug. Quite confident about solving this.

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: frontend Everything to do with type checking, control flow analysis, and everything between parsing and IRgen compiler General compiler. Should eventually become more specific as the issue is triaged team:compiler Compiler Team
Projects
None yet
Development

No branches or pull requests

2 participants