DanielXMoore / Civet

A TypeScript superset that favors more types and less typing
https://civet.dev
MIT License
1.33k stars 28 forks source link

Cannot shadow operator with argument #1249

Open bbrk24 opened 1 month ago

bbrk24 commented 1 month ago
operator foo (a, b)
  a

(foo) => arr[foo]

Compiler errors with "Unknown node undefined"

STRd6 commented 1 month ago

We probably need to add a negative lookahead when parsing (op) to check for => to make sure it's not part of a function parameter.