Skip to content

[go1.20] Added temporary generics override for sync.Map #1278

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

Merged
merged 1 commit into from
Mar 23, 2024

Conversation

grantnelson-wf
Copy link
Collaborator

@grantnelson-wf grantnelson-wf commented Mar 20, 2024

This is a temporary change to quiet complaints from natives using sync since sync.Map uses the atomic.Pointer[T] that was removed for generic-less go1.19.

CI will still be failing because of sync/atomic/type.go:40:10: undefined: Pointer where var _ = &Pointer[int]{} got added. If that wasn't there then after this change the tests should no longer be failing for an undefined atomic.Pointer from sync.Map when importing sync.

@grantnelson-wf grantnelson-wf marked this pull request as ready for review March 20, 2024 17:59
@nevkontakte nevkontakte merged commit 713ce26 into gopherjs:go1.20 Mar 23, 2024
@grantnelson-wf grantnelson-wf deleted the syncMapUpdate branch March 25, 2024 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants