We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If I generate easyjson for something like
//easyjson:json type T0 struct { P *T1 } type T1 struct { S string }
then the generated code includes this:
switch key { case "P": if in.IsNull() { in.Skip() out.P = nil } else { if out.P == nil { out.P = new(T1) } easyjson89aae3efDecodeGithubComCespareX1(in, &*out.P) }
The &*out.P bit looks wrong and can be simplified to just out.P. This was caught by staticcheck.
&*out.P
out.P
There's no bug here, though.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If I generate easyjson for something like
then the generated code includes this:
The
&*out.P
bit looks wrong and can be simplified to justout.P
. This was caught by staticcheck.There's no bug here, though.
The text was updated successfully, but these errors were encountered: