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?
to your account
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.
Successfully merging a pull request may close this issue.