diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-03-03 02:13:16 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-03-03 02:13:16 +0100 |
commit | a9c1afd5fd9d0055c849c10bea5dfe7494398cfd (patch) | |
tree | cb7bbfea0a4df878ccc3d3770044c884a06e722d /tools/nimsuggest/tests/tchk1.nim | |
parent | 3e7b04683c7912cc49d05444187ca3bde7bc18aa (diff) | |
download | Nim-a9c1afd5fd9d0055c849c10bea5dfe7494398cfd.tar.gz |
nimsuggest: structured error reporting; EPC mode still fails
Diffstat (limited to 'tools/nimsuggest/tests/tchk1.nim')
-rw-r--r-- | tools/nimsuggest/tests/tchk1.nim | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tools/nimsuggest/tests/tchk1.nim b/tools/nimsuggest/tests/tchk1.nim new file mode 100644 index 000000000..f9f0dc8fe --- /dev/null +++ b/tools/nimsuggest/tests/tchk1.nim @@ -0,0 +1,27 @@ +# test we get some suggestion at the end of the file + + + + + + + +type + + +template foo() = + +proc main = + +#[!]# +discard """ +$nimsuggest --tester $file +>chk $1 +chk;;skUnknown;;;;Hint;;???;;-1;;-1;;"tchk1 [Processing]";;0 +chk;;skUnknown;;;;Error;;$file;;12;;0;;"identifier expected, but found \'keyword template\'";;0 +chk;;skUnknown;;;;Error;;$file;;14;;0;;"complex statement requires indentation";;0 +chk;;skUnknown;;;;Error;;$file;;12;;0;;"implementation of \'foo\' expected";;0 +chk;;skUnknown;;;;Error;;$file;;17;;0;;"invalid indentation";;0 +chk;;skUnknown;;;;Hint;;$file;;12;;9;;"\'foo\' is declared but not used [XDeclaredButNotUsed]";;0 +chk;;skUnknown;;;;Hint;;$file;;14;;5;;"\'tchk1.main()\' is declared but not used [XDeclaredButNotUsed]";;0 +""" |