diff options
Diffstat (limited to 'src/cmd/compile/internal/types2/assignments.go')
-rw-r--r-- | src/cmd/compile/internal/types2/assignments.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/types2/assignments.go b/src/cmd/compile/internal/types2/assignments.go index 6caa4863d5..00495f3976 100644 --- a/src/cmd/compile/internal/types2/assignments.go +++ b/src/cmd/compile/internal/types2/assignments.go @@ -52,7 +52,7 @@ func (check *Checker) assignment(x *operand, T Type, context string) { // x.typ is typed // A generic (non-instantiated) function value cannot be assigned to a variable. - if sig := x.typ.Signature(); sig != nil && len(sig.tparams) > 0 { + if sig := asSignature(x.typ); sig != nil && len(sig.tparams) > 0 { check.errorf(x, "cannot use generic function %s without instantiation in %s", x, context) } |