Skip to content
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+ typesutil.Info support struct type #1537

Closed
qinhongwei123 opened this issue Nov 10, 2023 · 0 comments · Fixed by #1545
Closed

go+ typesutil.Info support struct type #1537

qinhongwei123 opened this issue Nov 10, 2023 · 0 comments · Fixed by #1545

Comments

@qinhongwei123
Copy link

The following program sample.gop triggers an unexpected result

// add a sample
expr := n.(*ast.CompositeLit)
...
typ := info.TypeOf(expr)

Expected result

returns the type of expression

Got

nil

Gop Version

1.21.4

Additional Notes

No response

@qinhongwei123 qinhongwei123 changed the title gop typesutil.Info not support struct type go+ typesutil.Info support struct type Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants