Adding test.

This commit is contained in:
Cyrus Najmabadi 2015-02-26 17:42:46 -08:00
parent 27e888284d
commit 7b7f49725d
3 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,10 @@
tests/cases/compiler/catchClauseWithBindingPattern1.ts(3,8): error TS1195: Catch clause variable name must be an identifier.
==== tests/cases/compiler/catchClauseWithBindingPattern1.ts (1 errors) ====
try {
}
catch ({a}) {
~
!!! error TS1195: Catch clause variable name must be an identifier.
}

View file

@ -0,0 +1,11 @@
//// [catchClauseWithBindingPattern1.ts]
try {
}
catch ({a}) {
}
//// [catchClauseWithBindingPattern1.js]
try {
}
catch (a = (void 0).a) {
}

View file

@ -0,0 +1,4 @@
try {
}
catch ({a}) {
}