Skip to content

Commit

Permalink
doc/next: document new language feature (alias type parameters)
Browse files Browse the repository at this point in the history
For #46477.
For #68545.

Change-Id: I54a36f24167a1f909a865f8f6cf416d7378faa4e
Reviewed-on: https://go-review.googlesource.com/c/go/+/632055
Reviewed-by: Robert Griesemer <[email protected]>
TryBot-Bypass: Robert Griesemer <[email protected]>
Auto-Submit: Robert Griesemer <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
  • Loading branch information
griesemer authored and gopherbot committed Nov 27, 2024
1 parent eab49f6 commit 1ffadf1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doc/next/2-language.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 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.

0 comments on commit 1ffadf1

Please sign in to comment.