18 lines
454 B
Plaintext
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.
|
|
} |