Skip to content

Commit

Permalink
Fixture for tail expr detection within match
Browse files Browse the repository at this point in the history
  • Loading branch information
wcjohnson committed Jun 7, 2017
1 parent 4764b4a commit c5ed23e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/fixtures/match/inside-comprehension/actual.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[for idx i in Array(10):
match i:
| 1: 1
]
9 changes: 9 additions & 0 deletions test/fixtures/match/inside-comprehension/expected.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
(() => {
const _arr = [];

for (let _arr2 = Array(10), i = 0, _len = _arr2.length; i < _len; i++) {
if (i === 1) _arr.push(1);
}

return _arr;
})();

0 comments on commit c5ed23e

Please sign in to comment.