Skip to content

Commit

Permalink
fix: panic on embedded struct with recursive
Browse files Browse the repository at this point in the history
fixes goccy#459
  • Loading branch information
NgoKimPhu committed Nov 4, 2023
1 parent df897ae commit f13a706
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/encoder/code.go
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ func (c *StructCode) ToAnonymousOpcode(ctx *compileContext) Opcodes {
prevField = firstField
codes = codes.Add(fieldCodes...)
}
ctx.structTypeToCodes[uintptr(unsafe.Pointer(c.typ))] = codes
return codes
}

Expand Down

0 comments on commit f13a706

Please sign in to comment.