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

Matching nested property with same name generates invalid JS

bbrk24 opened this issue · comments

switch m
  { foo: { foo: ^bar } }
    ;
if(typeof m === 'object' && m != null && 'foo' in m && typeof m.foo === 'object' && m.foo != null && 'foo' in m.foo && m.foo.foo === bar) {const { foo: foo1: { foo: foo2 } } = m;const foo = [foo2, foo1];
    ;}