summary refs log tree commit diff stats
path: root/compiler/ast.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-12-05 01:39:49 +0100
committerAraq <rumpf_a@web.de>2012-12-05 01:39:49 +0100
commit7171ae62cb94bf5e7ed426ec0679e4247c993121 (patch)
tree8ef7a60bbc6608d90e066fe3919947d18da3a410 /compiler/ast.nim
parent08342240709690f81286aea207a037348e46f635 (diff)
downloadNim-7171ae62cb94bf5e7ed426ec0679e4247c993121.tar.gz
constraint now part of the parameter symbol and not of the type
Diffstat (limited to 'compiler/ast.nim')
-rwxr-xr-xcompiler/ast.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ast.nim b/compiler/ast.nim
index f4ba1ef70..82a20c312 100755
--- a/compiler/ast.nim
+++ b/compiler/ast.nim
@@ -624,6 +624,7 @@ type
     loc*: TLoc
     annex*: PLib              # additional fields (seldom used, so we use a
                               # reference to another object to safe space)
+    constraint*: PNode        # additional constraints like 'lit|result'
   
   TTypeSeq* = seq[PType]
   TType* = object of TIdObj   # types are identical iff they have the
@@ -650,7 +651,6 @@ type
     align*: int               # the type's alignment requirements
     containerID*: int         # used for type checking of generics
     loc*: TLoc
-    constraint*: PNode        # additional constraints like 'lit|result'
 
   TPair*{.final.} = object 
     key*, val*: PObject