tinvcolonlocation2.nim 348 B

12345678910111213141516
  1. discard """
  2. errormsg: "expected: ':', but got: 'keyword finally'"
  3. file: "tinvcolonlocation2.nim"
  4. line: 11
  5. column: 8
  6. """
  7. try:
  8. echo "try"
  9. except #<- missing ':'
  10. echo "except"
  11. finally:
  12. #<-- error will be here above, at the beginning of finally,
  13. # since compiler tries to consome echo and part of except
  14. # expression
  15. echo "finally"