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
package main
import "fmt"
func main() {
IsZero[interface{}]("")
}
func IsZero[T comparable](val T) bool {
var zero T
fmt.Printf("%v:%v", zero, val)
return val != zero
}
What did you expect to see?
Compile and run successfully or give a valid error
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
No. I am using a version built from today's master
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Compile and run the code below using
go run
What did you expect to see?
Compile and run successfully or give a valid error
What did you see instead?
The text was updated successfully, but these errors were encountered: