diff options
author | Araq <rumpf_a@web.de> | 2012-12-05 01:39:49 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-12-05 01:39:49 +0100 |
commit | 7171ae62cb94bf5e7ed426ec0679e4247c993121 (patch) | |
tree | 8ef7a60bbc6608d90e066fe3919947d18da3a410 /compiler/rodread.nim | |
parent | 08342240709690f81286aea207a037348e46f635 (diff) | |
download | Nim-7171ae62cb94bf5e7ed426ec0679e4247c993121.tar.gz |
constraint now part of the parameter symbol and not of the type
Diffstat (limited to 'compiler/rodread.nim')
-rwxr-xr-x | compiler/rodread.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rodread.nim b/compiler/rodread.nim index 4461641db..722887299 100755 --- a/compiler/rodread.nim +++ b/compiler/rodread.nim @@ -330,9 +330,6 @@ proc decodeType(r: PRodReader, info: TLineInfo): PType = if r.s[r.pos] == '@': inc(r.pos) result.containerID = decodeVInt(r.s, r.pos) - if r.s[r.pos] == '`': - inc(r.pos) - result.constraint = decodeNode(r, UnknownLineInfo()) decodeLoc(r, result.loc, info) while r.s[r.pos] == '^': inc(r.pos) @@ -423,6 +420,9 @@ proc decodeSym(r: PRodReader, info: TLineInfo): PSym = result.offset = - 1 decodeLoc(r, result.loc, result.info) result.annex = decodeLib(r, info) + if r.s[r.pos] == '#': + inc(r.pos) + result.constraint = decodeNode(r, UnknownLineInfo()) if r.s[r.pos] == '(': if result.kind in routineKinds: result.ast = decodeNodeLazyBody(r, result.info, result) |