summary refs log tree commit diff stats
path: root/tests/deprecated/tannot.nim
blob: d14f6cc235181f5e2d8dab132d55e1e7a719ffb1 (plain) (blame) pre { line-height: 125%; } td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; paddi
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