summaryrefslogtreecommitdiffstats
path: root/src/cmd/compile/internal
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-14 19:14:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-14 19:14:03 +0000
commite9c64d7b331228dddf1b7c3d18c88a464896c6d1 (patch)
tree448abe42291439d1720df9769d0cfc266cc1ac7f /src/cmd/compile/internal
parentReleasing progress-linux version 1.22.2-2~progress7.99u1. (diff)
downloadgolang-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.go3
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 {