aboutsummaryrefslogtreecommitdiff
path: root/test/typeparam/smallest.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/typeparam/smallest.go')
-rw-r--r--test/typeparam/smallest.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/typeparam/smallest.go b/test/typeparam/smallest.go
index d851536049..3fead6a067 100644
--- a/test/typeparam/smallest.go
+++ b/test/typeparam/smallest.go
@@ -11,10 +11,10 @@ import (
)
type Ordered interface {
- type int, int8, int16, int32, int64,
- uint, uint8, uint16, uint32, uint64, uintptr,
- float32, float64,
- string
+ ~int | ~int8 | ~int16 | ~int32 | ~int64 |
+ ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr |
+ ~float32 | ~float64 |
+ ~string
}
func Smallest[T Ordered](s []T) T {