mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
doc/next: document new language feature (alias type parameters)
For #46477. For #68545. Change-Id: I54a36f24167a1f909a865f8f6cf416d7378faa4e Reviewed-on: https://go-review.googlesource.com/c/go/+/632055 Reviewed-by: Robert Griesemer <gri@google.com> TryBot-Bypass: Robert Griesemer <gri@google.com> Auto-Submit: Robert Griesemer <gri@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com>
This commit is contained in:
parent
eab49f6a59
commit
1ffadf1466
1 changed files with 5 additions and 1 deletions
|
|
@ -1,3 +1,7 @@
|
||||||
## Changes to the language {#language}
|
## Changes to the language {#language}
|
||||||
|
|
||||||
|
Go 1.24 now fully supports [generic type aliases](/issue/46477): a type alias
|
||||||
|
may be parameterized like a defined type.
|
||||||
|
See the [language spec](/ref/spec#Alias_declarations) for details.
|
||||||
|
For now, the feature can be disabled by setting `GOEXPERIMENT=noaliastypeparams`;
|
||||||
|
but the `aliastypeparams` setting will be removed for Go 1.25.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue