summary refs log blame commit diff stats
path: root/tests/parser/tinvcolonlocation2.nim
blob: 4251598b99f950c4f07c3a6527af4c48de4c2ef8 (plain) (tree)
1
2
3
4
5


                                

                                                       









                                                            
discard """
  file: "tinvcolonlocation2.nim"
  line: 11
  column: 8
  errormsg: "expected: ':', but got: 'keyword finally'"
"""
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"