support for multiple test variables and var qualifiers in user-defined type classes

This commit is contained in:
Zahary Karadjov 2013-11-13 02:24:08 +02:00
commit 31dd66acbf
6 changed files with 35 additions and 13 deletions

View file

@ -712,7 +712,6 @@ type
# -1 means that the size is unkwown
align*: int # the type's alignment requirements
loc*: TLoc
testeeName*: PIdent # the test variable in user-defined type classes
TPair*{.final.} = object
key*, val*: PObject
@ -1088,7 +1087,6 @@ proc assignType(dest, src: PType) =
dest.size = src.size
dest.align = src.align
dest.destructor = src.destructor
dest.testeeName = src.testeeName
# this fixes 'type TLock = TSysLock':
if src.sym != nil:
if dest.sym != nil: