Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error with documentation popup #149

Open
GoogleCodeExporter opened this issue Mar 26, 2015 · 0 comments
Open

Error with documentation popup #149

GoogleCodeExporter opened this issue Mar 26, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link
Contributor

I'm not sure this is a goclipse or gocode bug.

I wrote a simple package:

// Package vec3 defines the type Vector3, representing a 3-dimensional vector.
package vec3

type Vector3 struct {
    X, Y, Z float64
}

// Sum takes two vectors and returns the sum
func Sum (a, b Vector3) Vector3 {
    return Vector3{
        a.X + b.X, 
        a.Y + b.Y, 
        a.Z + b.Z}
}

// Sum sums the argument to the receiver in place.
func (v *Vector3) Sum (b Vector3) {
    v.X += b.X
    v.Y += b.Y
    v.Z += b.Z
}


Now, when I use it, no matter if I write a.Sum(b) or vec3.Sum(a, b): the 
documentation shown in the tooltip is always: "Sum sums the argument to the 
receiver in place."


Original issue reported on code.google.com by neclep...@gmail.com on 13 Jun 2013 at 2:29

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant