20 lines
No EOL
549 B
TypeScript
20 lines
No EOL
549 B
TypeScript
function fn() {
|
|
catch(x) { } // error missing try
|
|
|
|
finally { } // potential error; can be absorbed by the 'catch'
|
|
|
|
try { }; // error missing finally
|
|
}
|
|
|
|
function fn2() {
|
|
finally { } // error missing try
|
|
catch (x) { } // error missing try
|
|
|
|
try { } finally { } // statement is here, so the 'catch' clause above doesn't absorb errors from the 'finally' clause below
|
|
|
|
finally { } // error missing try
|
|
|
|
catch (x) { } // error missing try
|
|
|
|
try { } catch () { } // error missing catch binding
|
|
} |