luckyfengyong / goclipse

Automatically exported from code.google.com/p/goclipse
0 stars 0 forks source link

Error with documentation popup #149

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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