We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff7183b commit b5b219aCopy full SHA for b5b219a
toolchain/check/testdata/facet/period_self.carbon
@@ -304,6 +304,15 @@ interface I(T:! type) {
304
// later being constrained by `T.A`.
305
fn F(T:! I(.Self) where .A = (I(.Self) where .A = I(.Self))) {}
306
307
+
308
+// --- period_self_parameter_sees_lhs_of_where_expr.carbon
309
+library "[[@TEST_NAME]]";
310
311
+interface I(T:! Core.Destroy) {}
312
313
+// The `.Self` can see the LHS of the `where` to know `U` impls Core.Destroy.
314
+fn F(U:! Core.Destroy where .Self impls I(.Self)) {}
315
316
// CHECK:STDOUT: --- period_self_param.carbon
317
// CHECK:STDOUT:
318
// CHECK:STDOUT: constants {
0 commit comments