aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/importer/iimport.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/compile/internal/importer/iimport.go')
-rw-r--r--src/cmd/compile/internal/importer/iimport.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cmd/compile/internal/importer/iimport.go b/src/cmd/compile/internal/importer/iimport.go
index 3dd28033a1..3aab32fc6b 100644
--- a/src/cmd/compile/internal/importer/iimport.go
+++ b/src/cmd/compile/internal/importer/iimport.go
@@ -677,13 +677,13 @@ func (r *importReader) doType(base *types2.Named) types2.Type {
errorf("unexpected instantiation type")
}
nt := int(r.uint64())
- terms := make([]types2.Type, nt)
- tildes := make([]bool, nt)
+ terms := make([]*types2.Term, nt)
for i := range terms {
- terms[i] = r.typ()
- tildes[i] = r.bool()
+ typ := r.typ()
+ tilde := r.bool()
+ terms[i] = types2.NewTerm(tilde, typ)
}
- return types2.NewUnion(terms, tildes)
+ return types2.NewUnion(terms)
}
}