Jelajahi Sumber

Update the test comment explaining the fix for #5481 (#5488)

The fix for #5481 changed but the comment explaining what needs to
happen (and now happens due to the #5481 PR) was not updated.
Dana Jansens 11 bulan lalu
induk
melakukan
e9823df130

+ 5 - 5
toolchain/check/testdata/impl/lookup/min_prelude/lookup_interface_with_enclosing_generic_inside_rewrite_constraint.carbon

@@ -53,11 +53,11 @@ library "[[@TEST_NAME]]";
 //
 // What we need to happen instead:
 //
-// 7. The lookup in the `FacetType` of `H` needs to succeed. Having a more
-//    specific value in the query interface's specific arguments is fine.
-//    Instead of comparing for equality, look to see that the specific of the
-//    query interface is *compatible* with the specific of the facet type's
-//    `SpecificInterface`.
+// 7. The lookup in the `FacetType` of `H` needs to succeed. The facet type,
+//    which is the self type in the `LookupImplWitness`, must also have the same
+//    substitution happen to it as happened to the interface in the query. Then
+//    the specific ids in the query interface and the facet type will continue
+//    to match after substitution.
 
 class Outer(OuterParam:! type) {
   interface Y {