aboutsummaryrefslogtreecommitdiff
path: root/src/go/types/call.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/go/types/call.go')
-rw-r--r--src/go/types/call.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/go/types/call.go b/src/go/types/call.go
index 16b8e4eb7c..da2f319a4a 100644
--- a/src/go/types/call.go
+++ b/src/go/types/call.go
@@ -482,7 +482,7 @@ func (check *Checker) selector(x *operand, e *ast.SelectorExpr) {
var why string
if tpar := asTypeParam(x.typ); tpar != nil {
// Type parameter bounds don't specify fields, so don't mention "field".
- if tname := tpar.Bound().obj; tname != nil {
+ if tname := tpar.iface().obj; tname != nil {
why = check.sprintf("interface %s has no method %s", tname.name, sel)
} else {
why = check.sprintf("type bound for %s has no method %s", x.typ, sel)