mirror of https://github.com/golang/go.git
If a type or type parameter does not satisfy a contract because the
type or type constraint is not found in the list of type constraints,
change
T does not satisfy C(T) (T type constraint int not found in interface{type ...})
to
T does not satisfy C(T) (T type constraint int not found in [type ...])
Also, before this change, if the contract had any required methods,
those were also listed; now we just list the type constraints.
If a defined type does not satisfy a contract because the underlying
type is not found in the list of type constraints, change
MyUint does not satisfy C(T) (MyUint not found in interface{type ...})
to
MyUint does not satisfy C(T) (uint not found in [type ...])
That is, when describing the type that is not found, use the underlying type,
not the defined type.
Change-Id: I345836c44921e2e13e7f02041839b5eb4df75c45
Reviewed-on: https://team-review.git.corp.google.com/c/golang/go2-dev/+/718718
Reviewed-by: Robert Griesemer <gri@google.com>
|
||
|---|---|---|
| .. | ||
| err002.dir | ||
| g005.dir | ||
| err001.go2 | ||
| err002.go2 | ||
| g001.go2 | ||
| g001.out | ||
| g002.go2 | ||
| g002.out | ||
| g003.go2 | ||
| g004.go2 | ||
| g005.go2 | ||
| g006.go2 | ||
| g007.go2 | ||