summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
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)