mirror of https://github.com/golang/go.git
go/types/objectpath: update objectpath tests for TypeString changes
Enable a test case that uses comparable, now that its type string has been adjusted. Follow-up for CL 380999. Change-Id: I5ce729e42234d7539a464d0aafba5a7f53d59625 Reviewed-on: https://go-review.googlesource.com/c/tools/+/381234 Trust: Robert Griesemer <gri@golang.org> Run-TryBot: Robert Griesemer <gri@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
This commit is contained in:
parent
be5769ca0a
commit
845bb90a1d
|
|
@ -78,8 +78,7 @@ func F[FP0, FP1 any](FP0, FP1) {}
|
|||
wantErr string
|
||||
}{
|
||||
{types.Universe.Lookup("any"), "predeclared type any = interface{} has no path"},
|
||||
// TODO: uncomment once the type string of comparable has been updated.
|
||||
// {types.Universe.Lookup("comparable"), "predeclared type comparable interface{} has no path"},
|
||||
{types.Universe.Lookup("comparable"), "predeclared type comparable interface{comparable} has no path"},
|
||||
} {
|
||||
path, err := objectpath.For(test.obj)
|
||||
if err == nil {
|
||||
|
|
|
|||
Loading…
Reference in New Issue