DanielXMoore / Civet

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

`&` does not work in indented operator application #1173

Closed bbrk24 closed 2 months ago

bbrk24 commented 2 months ago

This works:

isBufferFull :=
    &# is 4 or
    ((&.0 + 256) & 0xf0) is 0xe0 and &# is 3 or
    ((&.0 + 256) & 0xe0) is 0xc0 and &# is 2

However, this causes a compile error:

isBufferFull :=
  (or)
    &# is 4
    ((&.0 + 256) & 0xf0) is 0xe0 and &# is 3
    ((&.0 + 256) & 0xe0) is 0xc0 and &# is 2