File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ <h2 id="introduction">DRAFT RELEASE NOTES — Introduction to Go 1.20</h2>
26
26
< h2 id ="language "> Changes to the language</ h2 >
27
27
28
28
< p >
29
- Go 1.20 includes three changes to the language.
29
+ Go 1.20 includes four changes to the language.
30
30
</ p >
31
31
32
32
< p > <!-- https://go.dev/issue/46505 -->
@@ -56,6 +56,15 @@ <h2 id="language">Changes to the language</h2>
56
56
what the implementations have always done.
57
57
</ p >
58
58
59
+ < p > <!-- https://go.dev/issue/56548 -->
60
+ < a href ="/ref/spec#Comparison_operators "> Comparable types</ a > (such as ordinary interfaces)
61
+ may now satisfy < code > comparable</ code > constraints, even if the type arguments
62
+ are not strictly comparable (comparison may panic at runtime).
63
+ This makes it possible to instantiate a type parameter constrained by < code > comparable</ code >
64
+ (e.g., a type parameter for a user-defined generic map key) with a non-strictly comparable type argument
65
+ such as an interface type, or a composite type containing an interface type.
66
+ </ p >
67
+
59
68
< h2 id ="ports "> Ports</ h2 >
60
69
61
70
< h3 id ="freebsd-riscv "> FreeBSD/RISC-V</ h3 >
You can’t perform that action at this time.
0 commit comments