diff options
| author | Ian Lance Taylor <iant@golang.org> | 2021-12-18 15:54:38 -0800 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2021-12-20 23:32:14 +0000 |
| commit | 6713b5dbbc4b3bbfa2022538501c7f8104f1e5fd (patch) | |
| tree | 8687310c23dc1b55d8b72960ef0999c6d35ac4cf /src/cmd/doc/testdata | |
| parent | 9901d9e87a47b775edd0e75edb19ba696091603e (diff) | |
| download | go-6713b5dbbc4b3bbfa2022538501c7f8104f1e5fd.tar.xz | |
cmd/doc: don't log on constraint type elements
Fixes #50256
Change-Id: I2327a0b28f8173c801ed2946bec8083967667027
Reviewed-on: https://go-review.googlesource.com/c/go/+/373314
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
Diffstat (limited to 'src/cmd/doc/testdata')
| -rw-r--r-- | src/cmd/doc/testdata/pkg.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cmd/doc/testdata/pkg.go b/src/cmd/doc/testdata/pkg.go index 5ece832565..a693c74918 100644 --- a/src/cmd/doc/testdata/pkg.go +++ b/src/cmd/doc/testdata/pkg.go @@ -238,3 +238,15 @@ type ExportedFormattedType struct { // Text after pre-formatted block. ExportedField int } + +type SimpleConstraint interface { + ~int | ~float64 +} + +type TildeConstraint interface { + ~int +} + +type StructConstraint interface { + struct { F int } +} |
