mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 21:53:42 -06:00
Adding test.
This commit is contained in:
parent
27e888284d
commit
7b7f49725d
@ -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.
|
||||
}
|
||||
11
tests/baselines/reference/catchClauseWithBindingPattern1.js
Normal file
11
tests/baselines/reference/catchClauseWithBindingPattern1.js
Normal file
@ -0,0 +1,11 @@
|
||||
//// [catchClauseWithBindingPattern1.ts]
|
||||
try {
|
||||
}
|
||||
catch ({a}) {
|
||||
}
|
||||
|
||||
//// [catchClauseWithBindingPattern1.js]
|
||||
try {
|
||||
}
|
||||
catch (a = (void 0).a) {
|
||||
}
|
||||
4
tests/cases/compiler/catchClauseWithBindingPattern1.ts
Normal file
4
tests/cases/compiler/catchClauseWithBindingPattern1.ts
Normal file
@ -0,0 +1,4 @@
|
||||
try {
|
||||
}
|
||||
catch ({a}) {
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user