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.
.X
.Self.X
1 parent 5e3bb52 commit 95b5cceCopy full SHA for 95b5cce
toolchain/check/testdata/facet/facet_assoc_const.carbon
@@ -451,6 +451,26 @@ interface N {
451
// CHECK:STDERR:
452
fn F(T:! N where .Y = {.a = {}} and .Y = {.a = ()}) {}
453
454
+// --- self_repeated_explicitly.carbon
455
+library "[[@TEST_NAME]]";
456
+
457
+interface N {
458
+ let Y1:! type;
459
+ let Y2:! type;
460
+}
461
462
+fn F(T:! N where .Y2 = .Y1 and .Y2 = .Self.Y1) { }
463
464
+// --- self_repeated_explicitly_with_value.carbon
465
466
467
468
469
470
471
472
+fn F(T:! N where .Y1 = () and .Y2 = .Y1 and .Y2 = .Self.Y1) { }
473
474
// --- fail_todo_cycle_through_self_reference.carbon
475
library "[[@TEST_NAME]]";
476
0 commit comments