diff --git a/doc/next/2-language.md b/doc/next/2-language.md index e45874b95437cd813574d3d103c768eeb8b3b3e9..db5d83a73e42cb905196dc69fe469d7cc974d0be 100644 --- a/doc/next/2-language.md +++ b/doc/next/2-language.md @@ -11,3 +11,7 @@ The "range" clause in a "for-range" loop now accepts iterator functions of the f as range expressions. Calls of the iterator argument function produce the iteration values for the "for-range" loop. For details see the [language spec](https://tip.golang.org/ref/spec#For_statements). + +<!-- go.dev/issue/46477, CL 566856, CL 586955, CL 586956 --> +Go 1.23 includes preview support for [generic type aliases](/issue/46477). +Building the toolchain with `GOEXPERIMENT=aliastypeparams` enables this feature. diff --git a/doc/next/6-stdlib/99-minor/go/types/46477.md b/doc/next/6-stdlib/99-minor/go/types/46477.md index b0a2d21b15cfa7566705eceb77d456f2a174ef25..7f744dc6ae4eee8142be6b88190f8f01ce676b70 100644 --- a/doc/next/6-stdlib/99-minor/go/types/46477.md +++ b/doc/next/6-stdlib/99-minor/go/types/46477.md @@ -1,13 +1 @@ -<!-- TODO: https://go.dev/issue/46477#issuecomment-2101270785 says: - -> In the meantime, we believe it makes sense to go forward with the Alias API changes -> proposed in #67143 for 1.23, even though type parameters won't be allowed during type -> checking. This lets work commence on parameterized alias support in tools. - -relevant CLs: - -https://go.dev/cl/566856 ("go/types, types2: initial support for parameterized type aliases") -https://go.dev/cl/586955 ("internal/goexperiment: add aliastypeparams GOEXPERIMENT flag") -https://go.dev/cl/586956 ("go/types, types2: use GOEXPERIMENT to enable alias type parameters") - ---> +<!-- see ../../../../2-language.md --> \ No newline at end of file