diff options
author | flywind <43030857+xflywind@users.noreply.github.com> | 2020-07-09 15:57:35 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-09 09:57:35 +0200 |
commit | 40b58a0a1864e0cc06ecd0ceb8aadf9e933eeb30 (patch) | |
tree | 2b02564a67c7f2b499daa81f6cc04a881a9751d4 /tests | |
parent | 399b2e3134751432f66a2414fbaf9c2a168fa953 (diff) | |
download | Nim-40b58a0a1864e0cc06ecd0ceb8aadf9e933eeb30.tar.gz |
fix #11009 (#14935)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/deprecated/tmessages.nim | 10 |
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) |