diff options
| author | Gergely Brautigam <skarlso777@gmail.com> | 2019-01-18 21:43:56 +0100 |
|---|---|---|
| committer | Daniel Martà <mvdan@mvdan.cc> | 2019-02-27 08:22:03 +0000 |
| commit | 8ee9bca2729ead81da6bf5a18b87767ff396d1b7 (patch) | |
| tree | 665d0f664ec2d72e5530528798bf8dc05f617de6 /src/syscall | |
| parent | 9cb2471334e75c5e8f459e820feb75da315563a7 (diff) | |
| download | go-8ee9bca2729ead81da6bf5a18b87767ff396d1b7.tar.xz | |
cmd/compile: suppress typecheck errors in a type switch case with broken type
If a type switch case expression has failed typechecking, the case body is
likely to also fail with confusing or spurious errors. Suppress
typechecking the case body when this happens.
Fixes #28926
Change-Id: Idfdb9d5627994f2fd90154af1659e9a92bf692c4
Reviewed-on: https://go-review.googlesource.com/c/158617
Run-TryBot: Daniel Martà <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/syscall')
0 files changed, 0 insertions, 0 deletions
