You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the errorName collides with the fieldName (either safe or unsafe), the fieldName ends up masking the private struct type, and ultimately will fail to compile.
$ go build ./...
# github.com/tdabboud/testing/pkg/testservice/errors
pkg/testservice/errors/errors.conjure.go:657:94: unknownSortOrder is not a type
When the
errorName
collides with thefieldName
(either safe or unsafe), thefieldName
ends up masking the private struct type, and ultimately will fail to compile.The following conjure-IR will repro the issue
The resulting code
As you can see above the
fieldName
isunknownSortOrder
which collides with the private structunknownSortOrder
The text was updated successfully, but these errors were encountered: