From 02e5238467d354d8d38d733360b36559b28ce782 Mon Sep 17 00:00:00 2001 From: Robert Findley Date: Tue, 14 Sep 2021 20:46:30 -0400 Subject: [PATCH] go/internal/gcimporter: rename instType to instanceType 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 Run-TryBot: Robert Findley gopls-CI: kokoro TryBot-Result: Go Bot Reviewed-by: Robert Griesemer --- go/internal/gcimporter/iimport.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go/internal/gcimporter/iimport.go b/go/internal/gcimporter/iimport.go index 869c13281b5..6f166d7f5af 100644 --- a/go/internal/gcimporter/iimport.go +++ b/go/internal/gcimporter/iimport.go @@ -74,7 +74,7 @@ const ( structType interfaceType typeParamType - instType + instanceType unionType ) @@ -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") }