summary refs log tree commit diff stats
path: root/tests/exception/texceptionbreak.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/exception/texceptionbreak.nim')
-rw-r--r--tests/exception/texceptionbreak.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/exception/texceptionbreak.nim b/tests/exception/texceptionbreak.nim
index 6548192c6..b8ce7eead 100644
--- a/tests/exception/texceptionbreak.nim
+++ b/tests/exception/texceptionbreak.nim
@@ -29,16 +29,16 @@ echo "2"
 try:
   raise newException(OSError, "Problem")
 except OSError:
-  block:
-    break
+  block label:
+    break label
 
 echo "3"
 
 # Fourth Variety
-block:
+block label:
   try:
     raise newException(OSError, "Problem")
   except OSError:
-    break
+    break label
 
 echo "4"