]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] cmd/compile: fixing import of comm clauses/closures in generic functions
authorDan Scales <danscales@google.com>
Mon, 10 May 2021 23:23:35 +0000 (16:23 -0700)
committerDan Scales <danscales@google.com>
Fri, 21 May 2021 23:13:46 +0000 (23:13 +0000)
commit8d2b4cb6cc3100f337e08cc7342f42823fa1dc9a
tree4eb794e8e1cf3f0235d4f13f659cbb52f45e2979
parent626e89c261297d13ef892bb569640cd72c35b98a
[dev.typeparams] cmd/compile: fixing import of comm clauses/closures in generic functions

Improvements:
 - Fix export/import of the default case of a select statement (was not
   dealing with nil Comm case)
 - Set properly the name of closure functions in imported generic
   functions

Added new test exporting/importing a reasonably large channel package,
chansimp.go.

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