diff options
author | Araq <rumpf_a@web.de> | 2011-09-24 00:46:41 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-09-24 00:46:41 +0200 |
commit | 6023e994fbc949c77abbbe4ffae761ca982732db (patch) | |
tree | 1a2173755edc026cdbae89c7f5ca0bdfdc83a138 /compiler/semdata.nim | |
parent | 2359b8b1073cfd027ac14a147aba06cc18d61010 (diff) | |
download | Nim-6023e994fbc949c77abbbe4ffae761ca982732db.tar.gz |
beginning of a taint mode; type system enhancements
Diffstat (limited to 'compiler/semdata.nim')
-rwxr-xr-x | compiler/semdata.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/semdata.nim b/compiler/semdata.nim index 306638d6c..e9c0567d1 100755 --- a/compiler/semdata.nim +++ b/compiler/semdata.nim @@ -178,7 +178,9 @@ proc makeRangeType(c: PContext, first, last: biggestInt, proc markUsed*(n: PNode, s: PSym) = incl(s.flags, sfUsed) - if sfDeprecated in s.flags: Message(n.info, warnDeprecated, s.name.s) + if {sfDeprecated, sfError} * s.flags != {}: + if sfDeprecated in s.flags: Message(n.info, warnDeprecated, s.name.s) + if sfError in s.flags: LocalError(n.info, errWrongSymbolX, s.name.s) proc illFormedAst*(n: PNode) = GlobalError(n.info, errIllFormedAstX, renderTree(n, {renderNoComments})) |