Open pventuzelo opened 3 months ago
I don't get any errors when running the code snippet on c93c7380c705fcec5c77bfc436c2f5ea085edd77
I don't get any errors when running the code snippet on c93c738
The issue seems to be that I was using the character U+00a0 in the space between "}" and "else" (I don't know why I was using this character). It appears that the character was replaced during the pasting of the code in the report.
Aim
We (https://github.com/FuzzingLabs) found that the compiler causes an error when you place in the same line the
}
of the end of anif
and a call toelse {
.The compiler doesn’t handle the line
} else {
properly. It seems to treat it as a return line because the error message indicates that the return type of the function is()
. Placing theelse
statement on a new line avoids the issue.The issue occurs with the latest compiler version on the master branch. The error message is as follows:
Expected Behavior
No error should be returned.
Bug
To Reproduce
1. 2. 3. 4.
Project Impact
None
Impact Context
No response
Workaround
None
Workaround Description
No response
Additional Context
No response
Installation Method
None
Nargo Version
No response
NoirJS Version
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response