diff --git a/examples/object-pattern-1.ts.md b/examples/object-pattern-1.ts.md new file mode 100644 index 0000000..3ac03e4 --- /dev/null +++ b/examples/object-pattern-1.ts.md @@ -0,0 +1,18 @@ +## `object-pattern-1.ts` + +### Status: `DONE` + +### Input Program + +```typescript +using_syntax_rules( + [foo, {foo: x}, x + 2] +).rewrite({foo: 1}) +``` + +### Output Program + +```typescript +1 + 2; +``` + diff --git a/tests/object-pattern-1.ts b/tests/object-pattern-1.ts new file mode 100644 index 0000000..398a2e9 --- /dev/null +++ b/tests/object-pattern-1.ts @@ -0,0 +1,3 @@ +using_syntax_rules( + [foo, {foo: x}, x + 2] +).rewrite({foo: 1})