From 845bb90a1df4ce4789c794479a29a4ea07e12414 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Wed, 26 Jan 2022 20:26:16 -0800 Subject: [PATCH] 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 Run-TryBot: Robert Griesemer gopls-CI: kokoro TryBot-Result: Gopher Robot Reviewed-by: Robert Findley --- go/types/objectpath/objectpath_go118_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/go/types/objectpath/objectpath_go118_test.go b/go/types/objectpath/objectpath_go118_test.go index 9fa7b494de..e94c79e8da 100644 --- a/go/types/objectpath/objectpath_go118_test.go +++ b/go/types/objectpath/objectpath_go118_test.go @@ -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 {