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

`for own` doesn't work inside `comptime`

bbrk24 opened this issue · comments

Minimal reproducer:

console.log comptime
  for own x in { foo: 1 }
    ;

Ah, good catch. This is a general issue with all "helpers" in generated code. I think we could fix this before solving the general "copy things out of scope into comptime block" problem: we can look for refs that match refs in the helpers block and copy them.