diem/move

[Bug] [move] [compiler] incorrect error message when using wrong operator

Opened this issue ยท 0 comments

๐Ÿ› 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);

Stack trace/error message
Screen Shot 2022-03-16 at 5 15 30 PM

Expected Behavior

Error should flag incorrect use of an assignment operator or something along these lines

System information

Mac OS 12.2.1