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
Note that this does not occur if c is initialized differently:
package main
funcmain() {
c:= []byte{'A'}
println(&c[0])
}
This seems to be related to #1569 where the behavior changes depending how the byte slice was initialized. However, I think that the solution here may be to account for the DataByteValue type in TypedValue's ProtectedSprint method.
The text was updated successfully, but these errors were encountered:
A panic occurs when trying to print a pointer to a single byte value using
println
.This can be produced by running:
Trace:
Note that this does not occur if
c
is initialized differently:This seems to be related to #1569 where the behavior changes depending how the byte slice was initialized. However, I think that the solution here may be to account for the
DataByteValue
type inTypedValue
'sProtectedSprint
method.The text was updated successfully, but these errors were encountered: