Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: aliases should be used in error messages #40965
The compiler error is:
Note the error (correctly) says rune, not int32. When we introduced rune and byte as aliases we were careful to preserve the right printing even though the two names were equivalent.
It appears the compiler does not extend the same courtesy to explicitly-defined aliases. If instead we use:
then the compiler error is:
It should say RUNE not int32.