]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: avoid unused variable error in invalid x.(type) expression
authorRobert Griesemer <gri@golang.org>
Tue, 21 Feb 2023 20:51:34 +0000 (12:51 -0800)
committerGopher Robot <gobot@golang.org>
Wed, 22 Feb 2023 00:37:45 +0000 (00:37 +0000)
commit22a65ba7b7276b67237198db4609cf3e4bde34e7
tree769fe100a98dd0a42e143705f1b5642f19c3a4b7
parentfeb355c427590df3aee7f3c0ee4adc0290c577a4
go/types, types2: avoid unused variable error in invalid x.(type) expression

This change removes one of the two follow-on errors in the issue below.

For #58612.

Change-Id: If1eec5031e524bad33caa4a914f52e6a1e273b60
Reviewed-on: https://go-review.googlesource.com/c/go/+/470015
Reviewed-by: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
src/cmd/compile/internal/types2/expr.go
src/go/types/expr.go
src/internal/types/testdata/fixedbugs/issue58612.go [new file with mode: 0644]