go.mod, compiler: bump minimum Go version to 1.23

This enables gotypesalias=1 by default, which is needed for
generic type aliases to work correctly in go/types.
This commit is contained in:
Jake Bailey
2026-04-14 10:00:09 -07:00
committed by Ron Evans
parent 020cca8c3c
commit 12d41ba0c1
6 changed files with 17 additions and 3 deletions
+10
View File
@@ -0,0 +1,10 @@
package main
// Generic type alias (requires go 1.24+, or GOEXPERIMENT=aliastypeparams in go 1.23).
type Set[T comparable] = map[T]struct{}
func main() {
s := make(Set[string])
s["hello"] = struct{}{}
println(len(s))
}
+1
View File
@@ -0,0 +1 @@
1