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

`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.