support for multiple test variables and var qualifiers in user-defined type classes
This commit is contained in:
parent
9061b8961e
commit
31dd66acbf
6 changed files with 35 additions and 13 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue