-
Notifications
You must be signed in to change notification settings - Fork 422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go 1.18 generics support #369
Comments
+1 |
+1 |
Are there any updates ? Example: package some_package;
//easyjson:json
type SecondNested struct {
SomeField bool `json:"someField"`
}
type NestedStruct[U json.Unmarshaler] struct {
SecondNested U `json:"secondNested"`
}
type Main[U json.Unmarshaler] struct {
NestedStructs NestedStruct[U] `json:"nested"`
}
//easyjson:json
type SomeType struct {
Main[*SecondNested]
} Generated code: func easyjson<...>SecondNested(in *jlexer.Lexer, out *NestedStruct[*some_package.SecondNested]) {}
func easyjson<...>SecondNested(out *jwriter.Writer, in NestedStruct[*some_package.SecondNested]) {} Problem is at this type *some_package.SecondNested, there must not be some_package in type declaration. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I use
v0.7.7
, code with generics fails:Any plans to have generics support in the near future?
The text was updated successfully, but these errors were encountered: