aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal
diff options
context:
space:
mode:
authorRobert Griesemer <gri@google.com>2025-10-29 15:22:14 -0700
committerGopher Robot <gobot@golang.org>2025-10-29 19:16:42 -0700
commit3be9a0e014ee56f25ce4aac6091c617799fd26f2 (patch)
tree09750314519443f7863713d60cc26c040311e8f3 /src/cmd/compile/internal
parentd2c5fa081445bf1ebea013c2b5531ffce690a923 (diff)
downloadgo-3be9a0e014ee56f25ce4aac6091c617799fd26f2.tar.xz
go/types, types: proceed with correct (invalid) type in case of a selector error
Fixes #76103. Change-Id: Idc2f5d1d7aeb4a9b468e7c268e3bf5b85d1c3777 Reviewed-on: https://go-review.googlesource.com/c/go/+/716300 Reviewed-by: Robert Griesemer <gri@google.com> Reviewed-by: Alan Donovan <adonovan@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Robert Griesemer <gri@google.com>
Diffstat (limited to 'src/cmd/compile/internal')
-rw-r--r--src/cmd/compile/internal/types2/call.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/compile/internal/types2/call.go b/src/cmd/compile/internal/types2/call.go
index 7128ad7866..52dc33b8cd 100644
--- a/src/cmd/compile/internal/types2/call.go
+++ b/src/cmd/compile/internal/types2/call.go
@@ -931,6 +931,7 @@ func (check *Checker) selector(x *operand, e *syntax.SelectorExpr, def *TypeName
Error:
x.mode = invalid
+ x.typ = Typ[Invalid]
x.expr = e
}