mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 17:34:43 +00:00
Prevent `deprecated` annotations to "slip" up to the parent module and warn about unsupported annotations. Accidentally fixes #7867
8 lines
150 B
Nim
8 lines
150 B
Nim
discard """
|
|
line: 7
|
|
errormsg: "annotation to deprecated not supported here"
|
|
"""
|
|
|
|
var foo* {.deprecated.} = 42
|
|
var foo1* {.deprecated: "no".} = 42
|