summaryrefslogtreecommitdiff
path: root/libgo/go/go/types/object.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/go/types/object.go')
-rw-r--r--libgo/go/go/types/object.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/libgo/go/go/types/object.go b/libgo/go/go/types/object.go
index 07adfbc34c3..cf773238a0d 100644
--- a/libgo/go/go/types/object.go
+++ b/libgo/go/go/types/object.go
@@ -294,6 +294,7 @@ func (*Var) isDependency() {} // a variable may be a dependency of an initializa
// An abstract method may belong to many interfaces due to embedding.
type Func struct {
object
+ hasPtrRecv bool // only valid for methods that don't have a type yet
}
// NewFunc returns a new function with the given signature, representing
@@ -304,7 +305,7 @@ func NewFunc(pos token.Pos, pkg *Package, name string, sig *Signature) *Func {
if sig != nil {
typ = sig
}
- return &Func{object{nil, pos, pkg, name, typ, 0, colorFor(typ), token.NoPos}}
+ return &Func{object{nil, pos, pkg, name, typ, 0, colorFor(typ), token.NoPos}, false}
}
// FullName returns the package- or receiver-type-qualified name of