Skip to content

Commit

Permalink
infer default for union shapes, now support more union types
Browse files Browse the repository at this point in the history
  • Loading branch information
widmogrod committed Oct 27, 2023
1 parent c7f83f6 commit 7a2b62d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infer_defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (f *InferredInfo) StructShapeWith(name string) *shape.StructLike {
func (f *InferredInfo) RetrieveUnions() []*shape.UnionLike {
result := make([]*shape.UnionLike, 0)
for unionName, possibleVariants := range f.possibleVariantTypes {
var variants []*shape.StructLike
var variants []shape.Shape
for _, variant := range possibleVariants {
variants = append(variants, f.shapes[variant])
}
Expand Down

0 comments on commit 7a2b62d

Please sign in to comment.