go/types, types2: confusing error message for invalid instantiation of non-generic type #48827
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
okay-after-beta1
Used by release team to mark a release-blocker issue as okay to resolve either before or after beta1
release-blocker
Milestone
For the example in #48818, @ALTree pointed out that the 1.18 error message is inscrutable
I think we can and should improve the error message. An easy fix would be to pass context and position the error on the '['. For example:
Is that sufficient?
CC @griesemer
The text was updated successfully, but these errors were encountered: