mirror of
https://github.com/golang/go
synced 2024-11-19 01:34:40 -07:00
dbc83e6dc0
typeIsValid() intended to stop on a named type, but since we called Underlying(), switch case never caught any named type. To avoid that, do an early check. Fixes golang/go#36637 Change-Id: I2700afbb8f9678b4542e2e7dccc3be59b1d9ebdf Reviewed-on: https://go-review.googlesource.com/c/tools/+/215238 Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
---|---|---|
.. | ||
bad0.go | ||
bad1.go | ||
badimport.go |