Skip to content

Commit 5583449

Browse files
committed
review
1 parent c2578ca commit 5583449

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

toolchain/check/testdata/facet/access.carbon

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,19 @@ fn F(U:! I where .I1 = .Self) {
100100
(U as type) as (I where .I1 = U);
101101
}
102102

103+
// --- convert_to_period_self.carbon
104+
library "[[@TEST_NAME]]";
105+
106+
interface I {
107+
let I1:! type;
108+
let I2:! type;
109+
}
110+
111+
fn F(U:! I where .I1 = .Self and .I2 = ()) {
112+
U as (I where .I1 = .Self);
113+
(U as type) as (I where .I1 = .Self);
114+
}
115+
103116
// --- access_through_call_once.carbon
104117
library "[[@TEST_NAME]]";
105118

toolchain/check/testdata/generic/template/fail_todo_template_access_assoc_const.carbon

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212

1313
library "[[@TEST_NAME]]";
1414

15-
// TODO: Improved error: no member named `I1` in `T` of type `type`.
15+
// TODO: This should check. The `T.I1` access should be deferred until we know
16+
// the value of the `template T`.
1617
//
1718
// CHECK:STDERR: fail_todo_template_access_assoc_const.carbon:[[@LINE+4]]:36: error: cannot evaluate type expression [TypeExprEvaluationFailure]
1819
// CHECK:STDERR: interface I(template T:! type, N:! T.I1) {

0 commit comments

Comments
 (0)