-
Notifications
You must be signed in to change notification settings - Fork 188
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
add generic methods for integer package #280
Conversation
/assign @thockin |
/retest (I'm a bit confused by this test failure) |
this may be the first time apidiff has run since #243 merged, and I'm not sure it is handling diffing of generic APIs correctly :-/ it was happy when the generic APIs were new, but looks like it fails to understand a no-op to them |
looks like apidiff added generics support in https://go-review.googlesource.com/c/exp/+/411076 but I'm not sure if this is exposing an edge it didn't handle |
Ha, I was just looking at apidiff code, it must be a bug. |
983db93
to
5dbc265
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
/lgtm
/approve
/hold
if you want to add uint cases, else remove hold
Thanks! /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: logicalhan, thockin The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/hold
type number interface { | ||
~int | ~int8 | ~int16 | ~int32 | ~int64 | ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Introducing a user-defined constraint here will continue breaking CI till golang/go#60911 is resolved.
See: #284
/retest |
/retest |
@logicalhan -- I see that GH workflows can't be retriggered after 30 days of its initial run, I think you'll have to push an empty commit to retrigger a run here :/ |
This PR is going to be obsolete actually due to https://tip.golang.org/ref/spec#Min_and_max. |
What type of PR is this?
What this PR does / why we need it:
Generics were introduced in go 1.18, we're at 1.20 so we can start using them in the utils package.
Release note: