summary refs log tree commit diff stats
path: root/tests/parser/tinvcolonlocation3.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/parser/tinvcolonlocation3.nim')
-rw-r--r--tests/parser/tinvcolonlocation3.nim12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/parser/tinvcolonlocation3.nim b/tests/parser/tinvcolonlocation3.nim
new file mode 100644
index 000000000..2b30b1dbe
--- /dev/null
+++ b/tests/parser/tinvcolonlocation3.nim
@@ -0,0 +1,12 @@
+discard """
+  file: "tinvcolonlocation3.nim"
+  line: 12
+  column: 3
+  errormsg: "':' expected"
+"""
+try:
+  echo "try"
+except:
+  echo "except"
+finally #<- missing ':'
+  echo "finally"