We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
fn test() { 1; 2; }
the compiler doesn't error.
error: Expected type (), found type Field ┌─ src/main.nr:23:5 │ 23 │ 1; │ - Error: Aborting due to 1 previous error
Compiled from source
No response
No
The text was updated successfully, but these errors were encountered:
and another case
fn test() { let a: () = {}; }
error: Expected type (), found type () ┌─ src/main.nr:23:17 │ 23 │ let a: () = {}; │ --
Sorry, something went wrong.
The first case with:
error: Expected type (), found type Field ┌─ src/main.nr:23:5 │ 23 │ 1; │ -
Is expected since you're sequencing an expression without using its result. Perhaps it can be downgraded into a warning though.
The second case with Expected type (), found type () is definitely a bug.
Expected type (), found type ()
jfecher
Successfully merging a pull request may close this issue.
Aim
Expected Behavior
the compiler doesn't error.
Bug
To Reproduce
Installation Method
Compiled from source
Nargo Version
No response
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response
The text was updated successfully, but these errors were encountered: