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
I encountered a crash in the Gno VM when performing a type conversion with a native type. The code below demonstrates the issue, where converting a struct to io.Reader causes the VM to crash during execution.
Code Snippet
package main
import"io"typesstruct{}
func (s) Read(p []byte) (nint, errerror) {
return0, nil
}
funcmain() {
varv= (io.Reader)(s{})
println(v.Read([]byte("test")))
}
Description
I encountered a crash in the Gno VM when performing a type conversion with a native type. The code below demonstrates the issue, where converting a struct to
io.Reader
causes the VM to crash during execution.Code Snippet
Stacktrace
Expected Behavior
The program should run without crashing, allowing the
Read
method of theio.Reader
interface to execute properly.Actual Behavior
The VM crashes with a panic related to the type conversion process.
The text was updated successfully, but these errors were encountered: