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

Expected semicolon without context #726

Open
Namek opened this issue Jan 3, 2025 · 1 comment
Open

Expected semicolon without context #726

Namek opened this issue Jan 3, 2025 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Namek
Copy link
Contributor

Namek commented Jan 3, 2025

I was typing an example for another issue and I got this.
Image

The issue: it doesn't tell where the semicolon is expected. In this case it's after the word "red".

type Edge {
  Start
  Between
  End
}

component Main {
  fun render : Html {
    <div>
      <p>"Hello Wold!"</p>
      <p>"Hello Wold!"</p>
      <p>"Hello Wold!"</p>
    </div>
  }

  style test(edge : Edge) {
    case edge {
      Start =>
        color: red
    }
  }
}
@gdotdesign gdotdesign added the bug Something isn't working label Jan 3, 2025
@gdotdesign gdotdesign self-assigned this Jan 3, 2025
@gdotdesign gdotdesign added this to the 0.22.0 milestone Jan 3, 2025
@gdotdesign
Copy link
Member

It's at the end of the file https://mint-lang.com/sandbox/W0TVIep3q1NsIg:

Image

I'm not sure why it showed you that error 🤔 We might be able to improve the error message here and show the ⌃⌃⌃⌃ at the end of the line but I need to think about it some.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants