]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] cmd/compile: move to new export version, keep reading previous version
authorDan Scales <danscales@google.com>
Wed, 14 Apr 2021 16:34:17 +0000 (09:34 -0700)
committerDan Scales <danscales@google.com>
Fri, 21 May 2021 04:03:26 +0000 (04:03 +0000)
commit7b3ee6102d4690c768a7a4b303a89f3f8c811124
tree5eb0be60a9203839698d2cf76eac4b8c5c188f0f
parent15ad61aff5e6b7774101483a933b3d975ae9bae8
[dev.typeparams] cmd/compile: move to new export version, keep reading previous version

I added constants for the previous export versions, and for the final
generics export version. I also added a const for the current export
version. We can increment the current export version for unstable
changes in dev.typeparams, and eventally set it back to the generics
version (2) before release. Added the same constants in
typecheck/iexport.go, importer/iimport.go, and gcimporter/iimport.go,
must be kept in sync.

Put in the needed conditionals to be able to read old versions.

Added new export/import test listimp.dir.

Change-Id: I166d17d943e07951aa752562e952b067704aeeca
Reviewed-on: https://go-review.googlesource.com/c/go/+/319931
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/importer/iimport.go
src/cmd/compile/internal/typecheck/iexport.go
src/cmd/compile/internal/typecheck/iimport.go
src/go/internal/gcimporter/gcimporter_test.go
src/go/internal/gcimporter/iimport.go
test/typeparam/listimp.dir/a.go [new file with mode: 0644]
test/typeparam/listimp.dir/main.go [new file with mode: 0644]
test/typeparam/listimp.go [new file with mode: 0644]