diff options
author | Araq <rumpf_a@web.de> | 2012-09-03 00:55:44 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-09-03 00:55:44 +0200 |
commit | af7c92c0038763db2ba7d7049d7d18363b15089e (patch) | |
tree | 1849c68021e717adceab0533c5a66a6699b76b6c /compiler/rodwrite.nim | |
parent | b56df72a325e4991128d808dc6c9edade3d0f293 (diff) | |
download | Nim-af7c92c0038763db2ba7d7049d7d18363b15089e.tar.gz |
term rewriting macros fully implemented; still buggy
Diffstat (limited to 'compiler/rodwrite.nim')
-rwxr-xr-x | compiler/rodwrite.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rodwrite.nim b/compiler/rodwrite.nim index 75e8a02a7..5be9a2439 100755 --- a/compiler/rodwrite.nim +++ b/compiler/rodwrite.nim @@ -233,6 +233,9 @@ proc encodeType(w: PRodWriter, t: PType, result: var string) = if t.containerID != 0: add(result, '@') encodeVInt(t.containerID, result) + if t.constraint != nil: + add(result, '`') + encodeNode(w, UnknownLineInfo(), t.constraint, result) encodeLoc(w, t.loc, result) for i in countup(0, sonsLen(t) - 1): if t.sons[i] == nil: |