summary refs log tree commit diff stats
path: root/tests/deprecated/tnoannot.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/deprecated/tnoannot.nim')
-rw-r--r--tests/deprecated/tnoannot.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/deprecated/tnoannot.nim b/tests/deprecated/tnoannot.nim
new file mode 100644
index 000000000..9cc5c7e06
--- /dev/null
+++ b/tests/deprecated/tnoannot.nim
@@ -0,0 +1,7 @@
+discard """
+  line: 7
+  errormsg: "annotation to deprecated not supported here"
+"""
+
+var foo* {.deprecated.} = 42
+var foo1* {.deprecated: "no".} = 42