summary refs log tree commit diff stats
path: root/tests/stylecheck/t20397_1.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stylecheck/t20397_1.nim')
-rw-r--r--tests/stylecheck/t20397_1.nim8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/stylecheck/t20397_1.nim b/tests/stylecheck/t20397_1.nim
new file mode 100644
index 000000000..76c03dca1
--- /dev/null
+++ b/tests/stylecheck/t20397_1.nim
@@ -0,0 +1,8 @@
+discard """
+  matrix: "--styleCheck:off --hint:Name:on"
+"""
+
+{.hintAsError[Name]:on.}
+var a_b = 1
+discard a_b
+{.hintAsError[Name]:off.}