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
A ByteTypeValue should not be persisted as it contains the underline array. However when it is assigned to a uint8 PointerType variable , the underlien array got persisted
Description
Problem:
A ByteTypeValue should not be persisted as it contains the underline array. However when it is assigned to a uint8 PointerType variable , the underlien array got persisted
Testing Case:
// PKGPATH: gno.land/r/test
package test
var a0, a1 *uint8
func main() {
a := []byte("helloooooooooooooooooooooo")
a1 = &a[1]
a0 = &a[0]
}
// Realm:
// switchrealm["gno.land/r/test"]
+c[a8ada09dee16d791fd406d629fe29bb0ed084a30:4]={
+}
The text was updated successfully, but these errors were encountered: