aboutsummaryrefslogtreecommitdiff
path: root/test/typeparam/chansimp.go
diff options
context:
space:
mode:
authorDan Scales <danscales@google.com>2021-05-10 16:23:35 -0700
committerDan Scales <danscales@google.com>2021-05-21 23:13:46 +0000
commit8d2b4cb6cc3100f337e08cc7342f42823fa1dc9a (patch)
tree4eb794e8e1cf3f0235d4f13f659cbb52f45e2979 /test/typeparam/chansimp.go
parent626e89c261297d13ef892bb569640cd72c35b98a (diff)
downloadgo-8d2b4cb6cc3100f337e08cc7342f42823fa1dc9a.tar.gz
go-8d2b4cb6cc3100f337e08cc7342f42823fa1dc9a.zip
[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>
Diffstat (limited to 'test/typeparam/chansimp.go')
-rw-r--r--test/typeparam/chansimp.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/typeparam/chansimp.go b/test/typeparam/chansimp.go
new file mode 100644
index 0000000000..76930e5e4f
--- /dev/null
+++ b/test/typeparam/chansimp.go
@@ -0,0 +1,7 @@
+// rundir -G=3
+
+// Copyright 2021 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package ignored