Skip to content

Commit

Permalink
go/internal/gcimporter: rename instType to instanceType
Browse files Browse the repository at this point in the history
This was suggested in CL 349949, and is done in the standard library in
CL 350031.

Change-Id: I3e7e3a5f56026ec5a9df7acab3079dc92ea07efb
Reviewed-on: https://go-review.googlesource.com/c/tools/+/350032
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
  • Loading branch information
findleyr committed Sep 15, 2021
1 parent 0cffec9 commit 02e5238
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/internal/gcimporter/iimport.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const (
structType
interfaceType
typeParamType
instType
instanceType
unionType
)

Expand Down Expand Up @@ -709,7 +709,7 @@ func (r *importReader) doType(base *types.Named) types.Type {
r.p.doDecl(pkg, name)
return r.p.tparamIndex[id]

case instType:
case instanceType:
if r.p.exportVersion < iexportVersionGenerics {
errorf("unexpected instantiation type")
}
Expand Down

0 comments on commit 02e5238

Please sign in to comment.