fixes #12172
This commit is contained in:
parent
ee6df5bd24
commit
5018e7f304
2 changed files with 3 additions and 3 deletions
|
|
@ -641,7 +641,7 @@ proc createTypeBoundOps(g: ModuleGraph; c: PContext; orig: PType; info: TLineInf
|
|||
let typ = orig.skipTypes({tyGenericInst, tyAlias, tySink})
|
||||
g.canonTypes[h] = typ
|
||||
canon = typ
|
||||
elif canon != orig:
|
||||
if canon != orig:
|
||||
overwrite = true
|
||||
|
||||
# multiple cases are to distinguish here:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue