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

                                
           









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