Skip to content

Instantly share code, notes, and snippets.

@azhuox

azhuox/block3.go Secret

Created December 1, 2020 04:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azhuox/327a0625cf92c10cde3985f83ba7368c to your computer and use it in GitHub Desktop.
Save azhuox/327a0625cf92c10cde3985f83ba7368c to your computer and use it in GitHub Desktop.
package main
func main() {
var _ = ([]string)(nil) == ([]string)(nil) // compiler error: invalid operation.
var sb = (map[string]bool)(nil) == (map[string]bool)(nil) // compiler error: invalid operation.
var _ = (func())(nil) == (func())(nil) // compiler error: invalid operation.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment