`for own` doesn't work inside `comptime`
bbrk24 opened this issue · comments
bbrk24 commented
Minimal reproducer:
console.log comptime
for own x in { foo: 1 }
;
Erik Demaine commented
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.