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

Generator operators

bbrk24 opened this issue · comments

operator foo (a)
  yield a

Actual output:

function foo(a) {
  return yield a;
}

Expected output:

function* foo(a) {
  return yield a;
}

operator* also doesn't work

Workaround:

operator foo (a)
  (->
    yield a
  )()