`comptime` object literal with ES6 method generates invalid JS
bbrk24 opened this issue · comments
e.g.
x := comptime ({ foo() {} })
Compiles to:
const x = {"foo":foo() {}};
I have an idea on how to fix it; the problem is more general than it seems at first (e.g. x := comptime ({ foo() {} }.foo)
). I'll get up a PR later.