]> Cypherpunks.ru repositories - gostls13.git/blobdiff - doc/godebug.md
go/types, types2: implement Alias proposal (export API)
[gostls13.git] / doc / godebug.md
index 380107cf66f4897ca845cad7f7709ff3412736c5..e4978b9d26334e3279db1715ed99ed3797b2092f 100644 (file)
@@ -143,6 +143,13 @@ patterns and unescape both patterns and request paths by segment.
 This behavior can be controlled by the
 [`httpmuxgo121` setting](/pkg/net/http/#ServeMux).
 
+Go 1.22 added the [Alias type](/pkg/go/types#Alias) to [go/types](/pkg/go/types)
+for the explicit representation of [type aliases](/ref/spec#Type_declarations).
+Whether the type checker produces `Alias` types or not is controlled by the
+[`gotypesalias` setting](/pkg/go/types#Alias).
+For Go 1.22 it defaults to `gotypesalias=0`.
+For Go 1.23, `gotypealias=1` will become the default.
+This setting will be removed in a future release, Go 1.24 at the earliest.
 
 ### Go 1.21