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 1.20+ compiles the example in 09-multiple-generic-types.md that calls for explicit instantiation #23

Open
syedriko opened this issue Aug 6, 2023 · 0 comments

Comments

@syedriko
Copy link

syedriko commented Aug 6, 2023

This is the example:

./prog.go:36:26: cannot use generic function Sum without instantiation

And here's the playground link: https://go.dev/play/p/ZeSWNvI-SQi?v=gotip

@syedriko syedriko changed the title Go 1.20+ compiles the example in 09-multiple-generic-types.md that called for explicit instantiation Go 1.20+ compiles the example in 09-multiple-generic-types.md that calls for explicit instantiation Aug 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant