-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
x/text/cmd/gotext: gotext does not work with generics #52553
Comments
@rsc this is gotext issue 2/2 |
Also see #50558 |
Is this issue still present? It should go away with one of the newer versions of tools: https://github.com/golang/text/blob/master/go.mod |
It still does not work with the latest released version of /x/text (v0.3.7) and /x/tools (v0.1.10). Updating /x/text to the latest commit on master (v0.3.8-0.20220509174342-b4bca84b0361, which also updates tools to v0.1.11-0.20220504162446-54c7ba520b92) seems to solve the problem. Can we get another release before closing this issue? |
@tux21b |
Ah, yes. Thanks for asking @esote. Everything is working fine now! |
The following minimal example produces an error with Go 1.18.1:
Stacktrace:
The error itself seems to be related to this issue #48525. Please note that in order to trigger the error, one must manually update x/tools, otherwise another error is triggered. See #52552.
PS: and please ignore the misuse of generics in this example. I just needed some code that uses generics.
The text was updated successfully, but these errors were encountered: