This commit is contained in:
Tingan Ho
2017-08-02 20:50:45 +02:00
parent f9e85ec091
commit 4f3e13ab8c
3 changed files with 4 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ tests/cases/conformance/statements/tryStatements/invalidTryStatements2.ts(19,20)
finally { } // potential error; can be absorbed by the 'catch'
try { }; // missing finally
try { }; // error missing finally
~
!!! error TS1005: 'finally' expected.
}

View File

@@ -4,7 +4,7 @@ function fn() {
finally { } // potential error; can be absorbed by the 'catch'
try { }; // missing finally
try { }; // error missing finally
}
function fn2() {
@@ -28,7 +28,7 @@ function fn() {
finally { } // potential error; can be absorbed by the 'catch'
try { }
finally { }
; // missing finally
; // error missing finally
}
function fn2() {
try {

View File

@@ -3,7 +3,7 @@ function fn() {
finally { } // potential error; can be absorbed by the 'catch'
try { }; // missing finally
try { }; // error missing finally
}
function fn2() {