Skip to content

Commit 992ed95

Browse files
committed
memory: fix parent for generation of named types
1 parent 9e9b63d commit 992ed95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

memory/model.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ func (mod *Model) p_add(gp *GenParams, p, r Loc, sum *int) Loc {
244244
}
245245
case typeset.Named:
246246
gp.typ = gp.ts.Underlying(gp.typ)
247-
mod.p_add(gp, n, r, sum)
247+
mod.p_add(gp, p, r, sum)
248248
added = false
249249

250250
default:

0 commit comments

Comments
 (0)