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
Gno currently doesn't allow using recover() when a nil pointer has been referenced. This came up with adapting fmt (#3847), where I cannot show <nil> for a case like the following:
func main() {
v := (*time.Time)(nil)
fmt.Println(v)
}
v.String() panics because String() expects a non-pointer receiver. The fmt code should be able to recover() from this panic, and show a "<nil>" instead, however this is not the case.
The text was updated successfully, but these errors were encountered:
Gno currently doesn't allow using
recover()
when a nil pointer has been referenced. This came up with adapting fmt (#3847), where I cannot show<nil>
for a case like the following:v.String() panics because
String()
expects a non-pointer receiver. Thefmt
code should be able torecover()
from this panic, and show a"<nil>"
instead, however this is not the case.The text was updated successfully, but these errors were encountered: