From 9e29dd42df18141506dcfc2513e8a653564fdbf1 Mon Sep 17 00:00:00 2001
From: Robert Findley gofmt should now be significantly faster.
vet
+ The vet tool is updated to support generic code. In most cases,
+ it reports an error in generic code whenever it would report an error in the
+ equivalent non-generic code after substituting for type parameters with a
+ type from their
+ type set.
+
+ For example, vet reports a format error in
+
func Print[T ~int|~string](t T) {
+ fmt.Printf("%d", t)
+}
+ because it would report a format error in the non-generic equivalent of
+ Print[string]:
+ func PrintString(x string) {
+ fmt.Printf("%d", x)
+}
+
+
-- 2.52.0