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

ASI fails before symbol-typed property

bbrk24 opened this issue · comments

class Foo
  [Symbol.toStringTag] = 'Foo'
  [Symbol.isConcatSpreadable] = true

Current compilation:

class Foo {
  [Symbol.toStringTag] = ("Foo"[Symbol.isConcatSpreadable] = true);
}

Expected compilation:

class Foo {
  [Symbol.toStringTag] = "Foo";
  [Symbol.isConcatSpreadable] = true;
}