summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorflywind <43030857+xflywind@users.noreply.github.com>2020-07-09 15:57:35 +0800
committerGitHub <noreply@github.com>2020-07-09 09:57:35 +0200
commit40b58a0a1864e0cc06ecd0ceb8aadf9e933eeb30 (patch)
tree2b02564a67c7f2b499daa81f6cc04a881a9751d4 /tests
parent399b2e3134751432f66a2414fbaf9c2a168fa953 (diff)
downloadNim-40b58a0a1864e0cc06ecd0ceb8aadf9e933eeb30.tar.gz
fix #11009 (#14935)
Diffstat (limited to 'tests')
-rw-r--r--tests/deprecated/tmessages.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/deprecated/tmessages.nim b/tests/deprecated/tmessages.nim
new file mode 100644
index 000000000..5884e396d
--- /dev/null
+++ b/tests/deprecated/tmessages.nim
@@ -0,0 +1,10 @@
+discard """
+  nimout:'''tmessages.nim(10, 1) Warning: Deprecated since v1.2.0, use 'HelloZ'; hello is deprecated [Deprecated]
+'''
+"""
+
+proc hello[T](a: T) {.deprecated: "Deprecated since v1.2.0, use 'HelloZ'".} =
+  discard
+
+
+hello[int](12)