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

coffeeDo bug

edemaine opened this issue · comments

"civet coffeeDo"
do (x) ->
  setTimeout => console.log x

CoffeeScript compilation:

(function(x) {
  return setTimeout(() => {
    return console.log(x);
  });
})(x);

Civet compilation:

((x)(function() {
  return setTimeout(() => console.log(x))
}))()

It's not any better with =>.