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.
The text was updated successfully, but these errors were encountered: