diff options
| author | Cuong Manh Le <cuong.manhle.vn@gmail.com> | 2022-04-04 14:07:36 +0700 |
|---|---|---|
| committer | Cuong Manh Le <cuong.manhle.vn@gmail.com> | 2022-04-04 16:25:52 +0000 |
| commit | efbe17d6f1f016616453d43208200ebf4a45d87c (patch) | |
| tree | 4ac30c27e33db4e07cabcbf2b221edd5f440d1a4 /test/typeparam | |
| parent | c8110c3df64a4eea12334a627cca2b78d6ff3082 (diff) | |
| download | go-efbe17d6f1f016616453d43208200ebf4a45d87c.tar.xz | |
cmd/compile: support reading union type for compiler backend in unified IR
Fixes #52124
Change-Id: I5749822d41d8e51f476bceb277b1d2cf7350dcc3
Reviewed-on: https://go-review.googlesource.com/c/go/+/397874
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'test/typeparam')
| -rw-r--r-- | test/typeparam/issue52124.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/typeparam/issue52124.go b/test/typeparam/issue52124.go new file mode 100644 index 0000000000..56318d5d4c --- /dev/null +++ b/test/typeparam/issue52124.go @@ -0,0 +1,9 @@ +// compile + +// Copyright 2022 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 p + +type I interface{ any | int } |
