diff options
author | Matthew Dempsky <mdempsky@google.com> | 2021-08-26 11:46:24 -0700 |
---|---|---|
committer | Matthew Dempsky <mdempsky@google.com> | 2021-08-26 19:34:52 +0000 |
commit | 3836983779a8f1f1a1b6dc629832e695dcacaf36 (patch) | |
tree | 394da462e871d98b2d82fec056190f3635df23d2 /src/cmd/compile/internal/types/type_test.go | |
parent | 1f8d4562debf8310910897ea85705cc067baa52d (diff) | |
download | go-3836983779a8f1f1a1b6dc629832e695dcacaf36.tar.gz go-3836983779a8f1f1a1b6dc629832e695dcacaf36.zip |
cmd/compile/internal/types: unexport Type.Extra
Not used outside of package types anymore. Let's keep it that.
Change-Id: I69b464ac94edaacd219da4210f7b8618e2beaf70
Reviewed-on: https://go-review.googlesource.com/c/go/+/345413
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Diffstat (limited to 'src/cmd/compile/internal/types/type_test.go')
-rw-r--r-- | src/cmd/compile/internal/types/type_test.go | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/cmd/compile/internal/types/type_test.go b/src/cmd/compile/internal/types/type_test.go index fe3f380b21..1fd05b3f5e 100644 --- a/src/cmd/compile/internal/types/type_test.go +++ b/src/cmd/compile/internal/types/type_test.go @@ -2,26 +2,25 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -package types_test +package types import ( - "cmd/compile/internal/types" "testing" ) func TestSSACompare(t *testing.T) { - a := []*types.Type{ - types.TypeInvalid, - types.TypeMem, - types.TypeFlags, - types.TypeVoid, - types.TypeInt128, + a := []*Type{ + TypeInvalid, + TypeMem, + TypeFlags, + TypeVoid, + TypeInt128, } for _, x := range a { for _, y := range a { c := x.Compare(y) - if x == y && c != types.CMPeq || x != y && c == types.CMPeq { - t.Errorf("%s compare %s == %d\n", x.Extra, y.Extra, c) + if x == y && c != CMPeq || x != y && c == CMPeq { + t.Errorf("%s compare %s == %d\n", x.extra, y.extra, c) } } } |