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/types/types2: generic functions must have a function body #47069

Open
griesemer opened this issue Jul 6, 2021 · 0 comments
Open

go/types/types2: generic functions must have a function body #47069

griesemer opened this issue Jul 6, 2021 · 0 comments
Assignees
Milestone

Comments

@griesemer
Copy link
Contributor

@griesemer griesemer commented Jul 6, 2021

Reminder issue: Currently, the type checkers permit generic functions without function body. We (probably) can't/won't permit external implementations of generic functions.

The linker will probably complain if a generic function body is missing, but we should report a nice error during type checking. The fix is trivial, but there are many generic function type checker tests that don't use function bodies.

cc: @findleyr, @mdempsky, @ianlancetaylor

@griesemer griesemer added this to the Go1.18 milestone Jul 6, 2021
@griesemer griesemer self-assigned this Jul 6, 2021
@gopherbot gopherbot removed the NeedsFix label Jul 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants