diff options
author | Danil Yarantsev <tiberiumk12@gmail.com> | 2020-06-01 18:07:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-01 17:07:01 +0200 |
commit | 3698f197f10b775cbe0824936637b7e7d294eb19 (patch) | |
tree | e6f333a6d7434886284b340c1ed95d06d1afda3e /nimsuggest/tests | |
parent | 4bb301dbe2a8fcb9e019e286fdc0cbf622e84434 (diff) | |
download | Nim-3698f197f10b775cbe0824936637b7e7d294eb19.tar.gz |
Change severity of template instantiation message [backport] (#14526)
* Change severity of template instatiation msg * Add a test * Trailing newline argh
Diffstat (limited to 'nimsuggest/tests')
-rw-r--r-- | nimsuggest/tests/ttempl_inst.nim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/nimsuggest/tests/ttempl_inst.nim b/nimsuggest/tests/ttempl_inst.nim new file mode 100644 index 000000000..ed04a67ce --- /dev/null +++ b/nimsuggest/tests/ttempl_inst.nim @@ -0,0 +1,13 @@ +template foo() = + {.warning: "foo".} + +foo() + +#[!]# +discard """ +$nimsuggest --tester $file +>chk $1 +chk;;skUnknown;;;;Hint;;???;;0;;-1;;"ttempl_inst [Processing]";;0 +chk;;skUnknown;;;;Hint;;$file;;4;;3;;"template/generic instantiation from here";;0 +chk;;skUnknown;;;;Warning;;$file;;2;;11;;"foo [User]";;0 +""" |