diff options
author | Danil Yarantsev <tiberiumk12@gmail.com> | 2020-06-01 16:06:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-01 15:06:45 +0200 |
commit | 00ec43305e51c4b3c0fc4f288a775f90189a4a7c (patch) | |
tree | e890e9a49bf8efe3137c7a29bdf7348c22159e2e /nimsuggest | |
parent | 5900d8442c6bf41bfaab02ae877ebf23680680bb (diff) | |
download | Nim-00ec43305e51c4b3c0fc4f288a775f90189a4a7c.tar.gz |
Fix `compiles` for nimsuggest [backport] (#14527)
* Handle nimsuggest in tryExpr * Added test
Diffstat (limited to 'nimsuggest')
-rw-r--r-- | nimsuggest/tests/tchk_compiles.nim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nimsuggest/tests/tchk_compiles.nim b/nimsuggest/tests/tchk_compiles.nim new file mode 100644 index 000000000..887a947b5 --- /dev/null +++ b/nimsuggest/tests/tchk_compiles.nim @@ -0,0 +1,8 @@ +discard compiles(2 + "hello") + +#[!]# +discard """ +$nimsuggest --tester $file +>chk $1 +chk;;skUnknown;;;;Hint;;???;;0;;-1;;"tchk_compiles [Processing]";;0 +""" |