TypeScript/tests/baselines/reference/catchClauseWithTypeAnnotation.errors.txt

9 lines
342 B
Plaintext
Raw Normal View History

tests/cases/compiler/catchClauseWithTypeAnnotation.ts(2,13): error TS1196: Catch clause variable cannot have a type annotation.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/catchClauseWithTypeAnnotation.ts (1 errors) ====
try {
} catch (e: any) {
~~~
!!! error TS1196: Catch clause variable cannot have a type annotation.
2014-07-13 01:04:16 +02:00
}