File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,19 @@ fn F(U:! I where .I1 = .Self) {
100
100
(U as type ) as (I where .I1 = U);
101
101
}
102
102
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
+
103
116
// --- access_through_call_once.carbon
104
117
library "[[@TEST_NAME]]" ;
105
118
Original file line number Diff line number Diff line change 12
12
13
13
library "[[@TEST_NAME]]" ;
14
14
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`.
16
17
//
17
18
// CHECK:STDERR: fail_todo_template_access_assoc_const.carbon:[[@LINE+4]]:36: error: cannot evaluate type expression [TypeExprEvaluationFailure]
18
19
// CHECK:STDERR: interface I(template T:! type, N:! T.I1) {
You can’t perform that action at this time.
0 commit comments