diff options
| author | Robert Griesemer <gri@golang.org> | 2022-03-09 14:27:25 -0800 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2022-03-09 23:21:06 +0000 |
| commit | 3a5e3d8173df547d8360a609097fc80f01182db1 (patch) | |
| tree | fc387b0e341e7126109f1fab40a9ffd6c1efcd67 /src/internal/bytealg | |
| parent | e189b5e06d4831025758c0b152838fa1a0375525 (diff) | |
| download | go-3a5e3d8173df547d8360a609097fc80f01182db1.tar.xz | |
go/types, types2: pointer base types cannot be type constraints
Pointer types may appear in expressions *P and we don't know if
we have an indirection (P is a pointer value) or a pointer type
(P is a type) until we type-check P. Don't forget to check that
a type P must be an ordinary (not a constraint) type in this
special case.
Fixes #51578.
Change-Id: If782cc6dd2a602a498574c78c99e40c3b72274a5
Reviewed-on: https://go-review.googlesource.com/c/go/+/391275
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/internal/bytealg')
0 files changed, 0 insertions, 0 deletions
