-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
internal compile error caused by function type alias #36419
Comments
There's an issue for tracking this bug #25838 |
This is not contrived, but a problem that is distilled WAAAAAAY down from a logging library that I am writing. A struct type holds references to functions that reconfigure child objects by taking and returning the struct type (along with other parameters), etc. |
@cuonglm - Thanks. That was referenced in the compile output, but since it mentioned reporting the bug here, I did. |
Confirmed the compile error also goes away if interface I is defined last. |
All right. Should I file a new bug report about the error message that literally says:
then? |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes (haven't tried 1.14beta1).
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Compile the following source using
go build bug.go
:All of the shown components seem to be necessary. In particular, the compile error disappears if any of the following are done:
What did you expect to see?
Successful compilation (no output).
What did you see instead?
The text was updated successfully, but these errors were encountered: