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: and keyword scanner #228

Open
aspeddro opened this issue Jun 9, 2023 · 1 comment · May be fixed by #229
Open

Error: and keyword scanner #228

aspeddro opened this issue Jun 9, 2023 · 1 comment · May be fixed by #229

Comments

@aspeddro
Copy link
Collaborator

aspeddro commented Jun 9, 2023

let andd = [1, 2, 3]

andd[0]->Js.log
andd[1]->Js.log

Playground

(source_file [0, 0] - [4, 0]
  (ERROR [0, 0] - [3, 15]
    (let_binding [0, 4] - [0, 20]
      pattern: (value_identifier [0, 4] - [0, 8])
      body: (array [0, 11] - [0, 20]
        (number [0, 12] - [0, 13])
        (number [0, 15] - [0, 16])
        (number [0, 18] - [0, 19])))
    (ERROR [2, 3] - [3, 9]
      (value_identifier [2, 3] - [2, 4])
      (array_pattern [2, 4] - [2, 7]
        (number [2, 5] - [2, 6]))
      (module_identifier [2, 9] - [2, 11])
      (ERROR [3, 3] - [3, 4])
      (array_pattern [3, 4] - [3, 7]
        (number [3, 5] - [3, 6])))
    (module_identifier [3, 9] - [3, 11])))
@aspeddro aspeddro linked a pull request Jun 9, 2023 that will close this issue
@CarlOlson
Copy link
Contributor

This looks like the same issue I have:

let and_ = (a, b) => (a, b)

let fn = () => {
  let x = 1

  and_(x, 2)->and_(3)
}

Playground

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

Successfully merging a pull request may close this issue.

2 participants