tchk1.nim 773 B

12345678910111213141516171819202122232425262728
  1. # test we get some suggestion at the end of the file
  2. type
  3. template foo() =
  4. proc main =
  5. #[!]#
  6. discard """
  7. $nimsuggest --tester $file
  8. >chk $1
  9. chk;;skUnknown;;;;Hint;;???;;0;;-1;;">> (toplevel): import(dirty): tests/tchk1.nim [Processing]";;0
  10. chk;;skUnknown;;;;Error;;$file;;12;;0;;"identifier expected, but got \'keyword template\'";;0
  11. chk;;skUnknown;;;;Error;;$file;;14;;0;;"nestable statement requires indentation";;0
  12. chk;;skUnknown;;;;Error;;$file;;17;;0;;"invalid indentation";;0
  13. chk;;skUnknown;;;;Error;;$file;;12;;0;;"implementation of \'foo\' expected";;0
  14. chk;;skUnknown;;;;Hint;;$file;;12;;9;;"\'foo\' is declared but not used [XDeclaredButNotUsed]";;0
  15. chk;;skUnknown;;;;Hint;;$file;;14;;5;;"\'main\' is declared but not used [XDeclaredButNotUsed]";;0
  16. """