diff options
Diffstat (limited to 'tests/accept/run/tunhandledexc.nim')
-rwxr-xr-x | tests/accept/run/tunhandledexc.nim | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/accept/run/tunhandledexc.nim b/tests/accept/run/tunhandledexc.nim deleted file mode 100755 index 36ba5418d..000000000 --- a/tests/accept/run/tunhandledexc.nim +++ /dev/null @@ -1,16 +0,0 @@ -type - ESomething = object of E_Base - ESomeOtherErr = object of E_Base - -proc genErrors(s: string) = - if s == "error!": - raise newException(ESomething, "Test") - else: - raise newException(EsomeotherErr, "bla") - -when True: - try: - genErrors("errssor!") - except ESomething: - echo("Error happened") - |