tchk1.nim 787 B

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