[Bug] [move] [compiler] incorrect error message when using wrong operator
Opened this issue ยท 0 comments
bholc646 commented
๐ Bug
I ran through a simple move tutorial and I accidentally used '=' when I meant '==' and the error message told me I was missing an end parenthesis when it is clear from the error message that I am not. See embedded screenshot below.
To reproduce
Code snippet to reproduce
// check if accessor functions return correct values
assert!(magic(&sword) == 42 && strength(&sword) = 7, 1);
Expected Behavior
Error should flag incorrect use of an assignment operator or something along these lines
System information
Mac OS 12.2.1