Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: confusing type checking error #14948
Please answer these questions before submitting your issue. Thanks!
This program mistakenly defines a function called "color" that returns a "color.Color". The intent was for the return type to refer to the "image/color" package, but of course the name was shadowed by the function itself.
While technically correct, this error message reads like an internal failure of the type checker, especially since it's outputting internal compiler node names and gives no details about what lines 2 through 5 mean.