Browse Source

Test 'finally' block compiler.

release/v0.1
Rafal Kupiec 1 year ago
parent
commit
84b5fd2717
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      tests/exception_handler.aer

+ 2
- 0
tests/exception_handler.aer View File

@ -24,6 +24,8 @@ class Program {
throw new NewException("Catch me once", 1);
} catch(Exception $e) {
ExceptionHandler::handleException($e);
} finally {
print("Called finally block 1\n");
}
throw new Exception("Catch me twice", 2);
}

Loading…
Cancel
Save