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

Error message uses wrong span #831

Open
cburgdorf opened this issue Dec 19, 2022 · 0 comments
Open

Error message uses wrong span #831

cburgdorf opened this issue Dec 19, 2022 · 0 comments

Comments

@cburgdorf
Copy link
Collaborator

What is wrong?

error: `match` arm must start with `{`
    ┌─ /home/cburgdorf/Documents/hacking/ef/bountiful/contracts/src/challenges/game5_6.fe:125:28
    │
125 │             Direction::Left => return self.column > 0,
    │                            ^ expected `{` here

The pointer points at before the fat arrow but should point after it (before the return)

How can it be fixed

Adjust the span

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant