destructors: irresponsibly simple tcustomseq test works
This commit is contained in:
parent
e7f37d7223
commit
35c8b5e3bc
3 changed files with 133 additions and 11 deletions
|
|
@ -363,7 +363,10 @@ proc handleGenericInvocation(cl: var TReplTypeVars, t: PType): PType =
|
|||
# '=' needs to be instantiated for generics when the type is constructed:
|
||||
newbody.field = cl.c.instTypeBoundOp(cl.c, opr, result, cl.info,
|
||||
attachedAsgn, 1)
|
||||
if not newDestructors: typeBound(assignment)
|
||||
if newDestructors:
|
||||
typeBound(destructor)
|
||||
typeBound(sink)
|
||||
typeBound(assignment)
|
||||
let methods = skipTypes(bbody, abstractPtrs).methods
|
||||
for col, meth in items(methods):
|
||||
# we instantiate the known methods belonging to that type, this causes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue