You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually, go/types may be wrong here. From the spec, on conversions:
A non-constant value x can be converted to type T in any of these cases:
...
x is an integer or a slice of bytes or runes and T is a string type.
x is a string and T is a slice of bytes or runes.
It doesn’t say that T is a slice whose elements have underlying type byte or rune.
go/types accepts this code. Go 1.12, 1.13, and 1.14beta1 all reject it with:
Noticed while looking at #36890.
Easy fix, will plan to do for 1.15.
The text was updated successfully, but these errors were encountered: