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: if expression with else clause on next line #220

Open
aspeddro opened this issue Apr 23, 2023 · 0 comments
Open

Error: if expression with else clause on next line #220

aspeddro opened this issue Apr 23, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@aspeddro
Copy link
Collaborator

if true {
  true
}
else {
  false
}
(source_file [0, 0] - [6, 0]
  (expression_statement [0, 0] - [2, 1]
    (if_expression [0, 0] - [2, 1]
      (true [0, 3] - [0, 7])
      (block [0, 8] - [2, 1]
        (expression_statement [1, 2] - [1, 6]
          (true [1, 2] - [1, 6])))))
  (expression_statement [3, 0] - [3, 4]
    (value_identifier [3, 0] - [3, 4]))
  (expression_statement [3, 5] - [5, 1]
    (block [3, 5] - [5, 1]
      (expression_statement [4, 2] - [4, 7]
        (false [4, 2] - [4, 7])))))
/home/pedro/Desktop/test-filetypes/rescript_test.res    0 ms    (MISSING ";" [3, 4] - [3, 4])
@nkrkv nkrkv added the bug Something isn't working label Apr 27, 2023
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

2 participants