TypeScript/tests/baselines/reference/invalidTryStatements2.errors.txt
Daniel Rosenwasser 5fc2792297 Covered more cases for arrow functions omitting arrows.
Specifically where we have a full signature followed by an open curly brace.
2014-07-23 11:49:51 -07:00

18 lines
454 B
Plaintext

==== tests/cases/conformance/statements/tryStatements/invalidTryStatements2.ts (4 errors) ====
function fn() {
try {
} catch { // syntax error, missing '(x)'
~
!!! '(' expected.
}
catch(x) { } // error missing try
~~~~~
!!! Statement expected.
~
!!! '=>' expected.
finally{ } // error missing try
~~~~~~~
!!! Statement expected.
}