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

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

Open
Tracked by #1166
bholc646 opened this issue Mar 17, 2022 · 0 comments
Open
Tracked by #1166
Labels
bug Something isn't working

Comments

@bholc646
Copy link

bholc646 commented Mar 17, 2022

🐛 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

@bholc646 bholc646 added the bug Something isn't working label Mar 17, 2022
satyamacn pushed a commit to satyamacn/move that referenced this issue Jan 13, 2023
* [fix] fix test failure on "crlf"

starcoinorg/starcoin#3401

* restore M.move symlink

Signed-off-by: satyamacn <[email protected]>
bors-diem pushed a commit that referenced this issue Jan 13, 2023
* [fix] fix test failure on "crlf"

starcoinorg/starcoin#3401

* restore M.move symlink

Signed-off-by: satyamacn <[email protected]>
Closes: #340
bors-diem pushed a commit that referenced this issue Jan 16, 2023
* [fix] fix test failure on "crlf"

starcoinorg/starcoin#3401

* restore M.move symlink

Signed-off-by: satyamacn <[email protected]>
Closes: #340
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant