the 'deprecated' pragma for modules now supports an error message

This commit is contained in:
Araq 2018-04-06 11:56:53 +02:00
commit 8518683dc7
3 changed files with 12 additions and 3 deletions

View file

@ -847,6 +847,8 @@ type
constraint*: PNode # additional constraints like 'lit|result'; also
# misused for the codegenDecl pragma in the hope
# it won't cause problems
# for skModule the string literal to output for
# deprecated modules.
when defined(nimsuggest):
allUsages*: seq[TLineInfo]