blob: f4e85da0b0e2716b02aad9cfb87c89efc9934941 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
let foo* {.deprecated: "abcd".} = 42
var foo1* {.deprecated: "efgh".} = 42
foo1 = foo #[tt.Warning
^ efgh; foo1 is deprecated [Deprecated]; tt.Warning
^ abcd; foo is deprecated [Deprecated]]#
proc hello[T](a: T) {.deprecated: "Deprecated since v1.2.0, use 'HelloZ'".} =
discard
hello[int](12) #[tt.Warning
^ Deprecated since v1.2.0, use 'HelloZ'; hello is deprecated [Deprecated]]#
const foo2* {.deprecated: "abcd".} = 42
discard foo2 #[tt.Warning
^ abcd; foo2 is deprecated [Deprecated]]#
|