summary refs log tree commit diff stats
path: root/nimsuggest
diff options
context:
space:
mode:
authorPylgos <43234674+Pylgos@users.noreply.github.com>2023-08-12 01:23:09 +0900
committerGitHub <noreply@github.com>2023-08-11 18:23:09 +0200
commit48da472dd2e625d2d794907afd33a4a153fa2dc1 (patch)
treebd504bf8495229a092a4df871fd7b1fdc1f4c14b /nimsuggest
parent469c9cfab487380ba85520c90a2fad7d658c3023 (diff)
downloadNim-48da472dd2e625d2d794907afd33a4a153fa2dc1.tar.gz
fix #22448 Remove `structuredErrorHook` temporary in `tryConstExpr` (#22450)
* fix #22448

* add test
Diffstat (limited to 'nimsuggest')
-rw-r--r--nimsuggest/tests/t22448.nim11
1 files changed, 11 insertions, 0 deletions
diff --git a/nimsuggest/tests/t22448.nim b/nimsuggest/tests/t22448.nim
new file mode 100644
index 000000000..8664bbbc3
--- /dev/null
+++ b/nimsuggest/tests/t22448.nim
@@ -0,0 +1,11 @@
+proc fn(a: static float) = discard
+proc fn(a: int) = discard
+
+let x = 1
+fn(x)
+
+discard """
+$nimsuggest --tester --v3 $file
+>chk $file
+chk;;skUnknown;;;;Hint;;*
+"""