Open
Description
http://golang.org/doc/go_spec.html#Method_expressions
Example:
package main
import (
"fmt"
)
type Int int
func (i Int) String() string {
return fmt.Sprint(int(i))
}
func main() {
f := Int.String
// here gocode thinks that 'f' is: 'func() string'
// but in reality it is: 'func(i Int) string'
}
Even though method expressions are rarely used, I need to fix that too.