DanielXMoore / Civet

A TypeScript superset that favors more types and less typing

Home Page:https://civet.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`&` does not work in indented operator application

bbrk24 opened this issue · comments

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