Prevent `deprecated` annotations to "slip" up to the parent module and warn about unsupported annotations. Accidentally fixes #7867
7 lines
150 B
Nim
7 lines
150 B
Nim
discard """
|
|
line: 7
|
|
errormsg: "annotation to deprecated not supported here"
|
|
"""
|
|
|
|
var foo* {.deprecated.} = 42
|
|
var foo1* {.deprecated: "no".} = 42
|