-
-
Save azhuox/327a0625cf92c10cde3985f83ba7368c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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