diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-14 19:14:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-14 19:14:03 +0000 |
commit | e9c64d7b331228dddf1b7c3d18c88a464896c6d1 (patch) | |
tree | 448abe42291439d1720df9769d0cfc266cc1ac7f /src/cmd/compile/internal | |
parent | Releasing progress-linux version 1.22.2-2~progress7.99u1. (diff) | |
download | golang-1.22-e9c64d7b331228dddf1b7c3d18c88a464896c6d1.tar.xz golang-1.22-e9c64d7b331228dddf1b7c3d18c88a464896c6d1.zip |
Merging upstream version 1.22.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/cmd/compile/internal')
-rw-r--r-- | src/cmd/compile/internal/noder/unified.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/compile/internal/noder/unified.go b/src/cmd/compile/internal/noder/unified.go index 492b00d..562b2e6 100644 --- a/src/cmd/compile/internal/noder/unified.go +++ b/src/cmd/compile/internal/noder/unified.go @@ -120,6 +120,9 @@ func lookupMethod(pkg *types.Pkg, symName string) (*ir.Func, error) { if name.Alias() { return nil, fmt.Errorf("type sym %v refers to alias", typ) } + if name.Type().IsInterface() { + return nil, fmt.Errorf("type sym %v refers to interface type", typ) + } for _, m := range name.Type().Methods() { if m.Sym == meth { |