From 00ec43305e51c4b3c0fc4f288a775f90189a4a7c Mon Sep 17 00:00:00 2001 From: Danil Yarantsev Date: Mon, 1 Jun 2020 16:06:45 +0300 Subject: Fix `compiles` for nimsuggest [backport] (#14527) * Handle nimsuggest in tryExpr * Added test --- nimsuggest/tests/tchk_compiles.nim | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 nimsuggest/tests/tchk_compiles.nim (limited to 'nimsuggest') 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 +""" -- cgit 1.4.1-2-gfad0