diff options
author | Robert Griesemer <gri@golang.org> | 2021-06-30 12:45:51 -0700 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2021-07-01 16:43:23 +0000 |
commit | fac21803ce513b3d8cab1629f37fd0a9ea2fbe07 (patch) | |
tree | 615ba624f9f623b0c368b7330692b68a4414a58f /src/cmd/compile/internal/types2/typexpr.go | |
parent | 1eb756689c413c84bb2bf91396b54028671bc541 (diff) | |
download | go-fac21803ce513b3d8cab1629f37fd0a9ea2fbe07.tar.gz go-fac21803ce513b3d8cab1629f37fd0a9ea2fbe07.zip |
[dev.typeparams] cmd/compile/internal/types2: rename newTypeSet -> computeTypeSet
Follow-up on comment in https://golang.org/cl/329309.
Change-Id: I31f746180237b916c1825fa1688641849478ba41
Reviewed-on: https://go-review.googlesource.com/c/go/+/332089
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
Diffstat (limited to 'src/cmd/compile/internal/types2/typexpr.go')
-rw-r--r-- | src/cmd/compile/internal/types2/typexpr.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/types2/typexpr.go b/src/cmd/compile/internal/types2/typexpr.go index 5626fed756..e861f7e784 100644 --- a/src/cmd/compile/internal/types2/typexpr.go +++ b/src/cmd/compile/internal/types2/typexpr.go @@ -141,7 +141,7 @@ func (check *Checker) ordinaryType(pos syntax.Pos, typ Type) { // interface methods. Delay this check to the end of type-checking. check.later(func() { if t := asInterface(typ); t != nil { - tset := newTypeSet(check, pos, t) // TODO(gri) is this the correct position? + tset := computeTypeSet(check, pos, t) // TODO(gri) is this the correct position? if tset.types != nil { check.softErrorf(pos, "interface contains type constraints (%s)", tset.types) return |