summary refs log blame commit diff stats
path: root/tests/parser/tinvcolonlocation2.nim
blob: 2b6a92b9d820cf095e8b429acd1c6ded935d9889 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                            
discard """
  file: "tinvcolonlocation2.nim"
  line: 11
  column: 1
  errormsg: "':' expected"
"""
try:
  echo "try"
except #<- missing ':'
  echo "except"
finally:
#<-- error will be here above, at the beginning of finally,
#    since compiler tries to consome echo and part of except
#    expression
  echo "finally"