ttempl_inst.nim 351 B

1234567891011121314
  1. template foo() =
  2. {.warning: "foo".}
  3. foo()
  4. #[!]#
  5. discard """
  6. $nimsuggest --tester $file
  7. >chk $1
  8. chk;;skUnknown;;;;Hint;;???;;0;;-1;;">> (toplevel): import(dirty): tests/ttempl_inst.nim [Processing]";;0
  9. chk;;skUnknown;;;;Hint;;$file;;4;;3;;"template/generic instantiation from here";;0
  10. chk;;skUnknown;;;;Warning;;$file;;2;;11;;"foo [User]";;0
  11. """