mirror of
https://github.com/golang/go
synced 2024-11-17 09:04:44 -07:00
b27c7e30dc
HasShape needs a TINTER case. Add a test for x.(T) in various situations. Needs the fix above. Also remove ONEW unshapify case. It is ok for ONEW to have a shape type, as it will just be passed to mallocgc, or possibly used as a stack object type, both of which are ok. Change-Id: Ibddf8f5c8c254d32cb5ebcaca7dc94b4c00ab893 Reviewed-on: https://go-review.googlesource.com/c/go/+/337231 Trust: Keith Randall <khr@golang.org> Trust: Dan Scales <danscales@google.com> Run-TryBot: Keith Randall <khr@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Dan Scales <danscales@google.com>
9 lines
38 B
Plaintext
9 lines
38 B
Plaintext
3
|
|
3 true
|
|
0 false
|
|
3
|
|
3 true
|
|
0 false
|
|
3
|
|
3
|