diff options
author | Chressie Himpel <chressie@google.com> | 2022-04-27 20:09:28 +0200 |
---|---|---|
committer | Chressie Himpel <chressie@google.com> | 2022-04-27 20:09:28 +0200 |
commit | ec7f5165ddc680efbac18dc15b4905844d9e8db9 (patch) | |
tree | eacc43345e3d6f0adfda16bfcf66e7e5096a85b9 /src/cmd/compile/internal/types2/decl.go | |
parent | ca6fd39cf6498d4507fc7cdaced55620c283a503 (diff) | |
parent | f0ee7fda636408b4f04ca3f3b11788f662c90610 (diff) | |
download | go-ec7f5165ddc680efbac18dc15b4905844d9e8db9.tar.gz go-ec7f5165ddc680efbac18dc15b4905844d9e8db9.zip |
[dev.boringcrypto] all: merge master into dev.boringcrypto
Change-Id: Ic5f71c04f08c03319c043f35be501875adb0a3b0
Diffstat (limited to 'src/cmd/compile/internal/types2/decl.go')
-rw-r--r-- | src/cmd/compile/internal/types2/decl.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/types2/decl.go b/src/cmd/compile/internal/types2/decl.go index 95143cbed5e..4f28c362c76 100644 --- a/src/cmd/compile/internal/types2/decl.go +++ b/src/cmd/compile/internal/types2/decl.go @@ -735,7 +735,7 @@ func (check *Checker) declStmt(list []syntax.Decl) { top := len(check.delayed) // iota is the index of the current constDecl within the group - if first < 0 || list[index-1].(*syntax.ConstDecl).Group != s.Group { + if first < 0 || s.Group == nil || list[index-1].(*syntax.ConstDecl).Group != s.Group { first = index last = nil } |