tfatal1.nim 572 B

12345678910111213141516
  1. {.warning: "I'm a warning!".}
  2. {.error: "I'm an error!".}
  3. {.fatal: "I'm a fatal error!".}
  4. {.error: "I'm an error after fatal error!".}
  5. #[!]#
  6. discard """
  7. $nimsuggest --tester $file
  8. >chk $1
  9. chk;;skUnknown;;;;Hint;;???;;0;;-1;;">> (toplevel): import(dirty): tests/tfatal1.nim [Processing]";;0
  10. chk;;skUnknown;;;;Warning;;$file;;1;;9;;"I\'m a warning! [User]";;0
  11. chk;;skUnknown;;;;Error;;$file;;2;;7;;"I\'m an error!";;0
  12. chk;;skUnknown;;;;Error;;$file;;3;;7;;"fatal error: I\'m a fatal error!";;0
  13. chk;;skUnknown;;;;Error;;$file;;4;;7;;"I\'m an error after fatal error!";;0
  14. """