fix sighashes for generic ref (#20723)
the `hashType` issue in #12229 was never really fixed - it just stopped being called in that context
This commit is contained in:
parent
59083e2e48
commit
58f79e7c3e
1 changed files with 2 additions and 1 deletions
|
|
@ -185,7 +185,8 @@ proc hashType(c: var MD5Context, t: PType; flags: set[ConsiderFlag]) =
|
||||||
hashType c, t[0], flags
|
hashType c, t[0], flags
|
||||||
of tyRef, tyPtr, tyGenericBody, tyVar:
|
of tyRef, tyPtr, tyGenericBody, tyVar:
|
||||||
c &= char(t.kind)
|
c &= char(t.kind)
|
||||||
c.hashType t.lastSon, flags
|
if t.sons.len > 0:
|
||||||
|
c.hashType t.lastSon, flags
|
||||||
if tfVarIsPtr in t.flags: c &= ".varisptr"
|
if tfVarIsPtr in t.flags: c &= ".varisptr"
|
||||||
of tyFromExpr:
|
of tyFromExpr:
|
||||||
c &= char(t.kind)
|
c &= char(t.kind)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue