-
Notifications
You must be signed in to change notification settings - Fork 18k
Different empty interfaces are mutually incompatible (under 6g) #74
New issue
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
Labels
Comments
The central issue here is that func Push(vector.Element) func Push(interface{}) are different types according to the language specification. Similarly, if you had type T int then you could not use a method Add(T) to satisfy Add(int): they're different types, which can be useful but is certainly different from, say, C or C++. The best answer to this might be to replace vector.Element with interface{}. Status changed to Accepted. |
Owner changed to g...@golang.org. |
This issue was closed by revision 23843fa. Status changed to Fixed. Merged into issue #-. |
minux
pushed a commit
to minux/goios
that referenced
this issue
Feb 27, 2015
Fixes golang#74 I have no idea why this is implemented in asm. If the compiler cannot do as good a job (and inline) then we should all just give up now.
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by punya.biswal:
Attachments:
The text was updated successfully, but these errors were encountered: