diff options
author | Neelesh Chandola <neelesh.chandola@outlook.com> | 2019-01-09 00:14:47 +0530 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-01-08 19:44:47 +0100 |
commit | fb26b95f815b5426e0a8aad98ca0ff018ef1f4db (patch) | |
tree | 9ef02c1e5745922ee180cb6d680cfe10c0f4129a /tests/deprecated/tannot.nim | |
parent | d0366c519487610ff26d28175e98a9c3ef178670 (diff) | |
download | Nim-fb26b95f815b5426e0a8aad98ca0ff018ef1f4db.tar.gz |
{.deprecated: msg.} now works for vars and lets (#10234)
Diffstat (limited to 'tests/deprecated/tannot.nim')
-rw-r--r-- | tests/deprecated/tannot.nim | 9 |
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 |