Skip to content

Expected semicolon without context #726

@Namek

Description

@Namek

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
    }
  }
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions