]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.typeparams] cmd/compile: cleanup ABI utils tests
authorMatthew Dempsky <mdempsky@google.com>
Wed, 7 Jul 2021 23:15:53 +0000 (16:15 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 8 Jul 2021 19:50:12 +0000 (19:50 +0000)
commit42fe1327878dc0956d2c6407a54112fa5e75bd34
tree39bcf3ea6d818e294719782c53a29e4309839943
parentd4f6d161e439b3c2a56a4583d4b5acebe3fdeeee
[dev.typeparams] cmd/compile: cleanup ABI utils tests

This CL cleans a few minor nits with the ABI utils tests that are now
necessary because of cleanups that happened on master:

1. Initialize types.LocalPkg; this needs to be set for selector names
to be handled correctly.

2. In TestABIUtilsInterfaces, switch to using an exported identifier,
so it doesn't need to be package qualified.

3. While here, change the method result type from "untyped string" to
just "string". Constants are the only declared object that can ever
have an untyped type.

Change-Id: Iabed46594361a516317a1c2d20c3d59bdb519844
Reviewed-on: https://go-review.googlesource.com/c/go/+/333189
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/compile/internal/test/abiutils_test.go