mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 01:44:37 +00:00
Prevent `deprecated` annotations to "slip" up to the parent module and warn about unsupported annotations. Accidentally fixes #7867
11 lines
223 B
Nim
11 lines
223 B
Nim
type
|
|
Ty* {.deprecated.} = uint32
|
|
Ty1* {.deprecated: "hello".} = uint32
|
|
|
|
var aVar* {.deprecated.}: char
|
|
|
|
proc aProc*() {.deprecated.} = discard
|
|
proc aProc1*() {.deprecated: "hello".} = discard
|
|
|
|
{.deprecated: "goodbye".}
|