More robust handling of deprecated pragmas (#8696)
Prevent `deprecated` annotations to "slip" up to the parent module and warn about unsupported annotations. Accidentally fixes #7867
This commit is contained in:
parent
bbe5e8326b
commit
cf20c4460c
5 changed files with 64 additions and 9 deletions
10
tests/deprecated/importme.nim
Normal file
10
tests/deprecated/importme.nim
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
type
|
||||
Ty* {.deprecated.} = uint32
|
||||
Ty1* {.deprecated: "hello".} = uint32
|
||||
|
||||
var aVar* {.deprecated.}: char
|
||||
|
||||
proc aProc*() {.deprecated.} = discard
|
||||
proc aProc1*() {.deprecated: "hello".} = discard
|
||||
|
||||
{.deprecated: "goodbye".}
|
||||
Loading…
Add table
Add a link
Reference in a new issue