Don't consider concept types as non-complex during codegen (#8119)
Fixes #7125
This commit is contained in:
parent
a85493610c
commit
bb23d903b6
2 changed files with 15 additions and 2 deletions
|
|
@ -288,7 +288,7 @@ type
|
|||
proc genRefAssign(p: BProc, dest, src: TLoc, flags: TAssignmentFlags)
|
||||
|
||||
proc isComplexValueType(t: PType): bool {.inline.} =
|
||||
let t = t.skipTypes(abstractInst)
|
||||
let t = t.skipTypes(abstractInst + tyUserTypeClasses)
|
||||
result = t.kind in {tyArray, tySet, tyTuple, tyObject} or
|
||||
(t.kind == tyProc and t.callConv == ccClosure)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue