We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://play.golang.org/p/ZTGD0NwNsfQ
untypedNil := Typ[UntypedNil] error := Universe.Lookup("error").Type().Underlying().(*Interface) fmt.Println(Implements(untypedNil, error)) // "false" fmt.Println(AssignableTo(untypedNil, error)) // "true"
This seems like at least a documentation issue.
The text was updated successfully, but these errors were encountered:
Closing after offline discussion with gri. The comment I proposed to add to Implements:
// Untyped nil is assignable to any interface, but implements only the empty interface.
would only be repeating what the spec already says.
Sorry, something went wrong.
No branches or pull requests
https://play.golang.org/p/ZTGD0NwNsfQ
This seems like at least a documentation issue.
The text was updated successfully, but these errors were encountered: