summary refs log tree commit diff stats
path: root/tests/deprecated/tannot.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/deprecated/tannot.nim')
-rw-r--r--tests/deprecated/tannot.nim9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/deprecated/tannot.nim b/tests/deprecated/tannot.nim
new file mode 100644
index 000000000..d14f6cc23
--- /dev/null
+++ b/tests/deprecated/tannot.nim
@@ -0,0 +1,9 @@
+discard """
+  nimout: '''tannot.nim(9, 1) Warning: efgh; foo1 is deprecated [Deprecated]
+tannot.nim(9, 8) Warning: abcd; foo is deprecated [Deprecated]
+'''
+"""
+
+let foo* {.deprecated: "abcd".} = 42
+var foo1* {.deprecated: "efgh".} = 42
+foo1 = foo