Update
This commit is contained in:
8
vendor/golang.org/x/exp/constraints/constraints.go
generated
vendored
8
vendor/golang.org/x/exp/constraints/constraints.go
generated
vendored
@@ -6,6 +6,8 @@
|
||||
// with type parameters.
|
||||
package constraints
|
||||
|
||||
import "cmp"
|
||||
|
||||
// Signed is a constraint that permits any signed integer type.
|
||||
// If future releases of Go add new predeclared signed integer types,
|
||||
// this constraint will be modified to include them.
|
||||
@@ -47,6 +49,6 @@ type Complex interface {
|
||||
// this constraint will be modified to include them.
|
||||
//
|
||||
// This type is redundant since Go 1.21 introduced [cmp.Ordered].
|
||||
type Ordered interface {
|
||||
Integer | Float | ~string
|
||||
}
|
||||
//
|
||||
//go:fix inline
|
||||
type Ordered = cmp.Ordered
|
||||
|
||||
Reference in New Issue
Block a user