You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: toolchain/check/testdata/generic/extend_type_completion.carbon
+18-6Lines changed: 18 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -62,18 +62,24 @@ interface J(N:! i32) {
62
62
// CHECK:STDERR: ^
63
63
extend require impls K(array(i32, N));
64
64
}
65
+
interfaceI(N:! i32) {
66
+
// CHECK:STDERR: fail_interface_extend_require_impls_does_need_complete_interface.carbon:[[@LINE+3]]:24: note: in `require` used here [ResolvingSpecificHere]
67
+
// CHECK:STDERR: extend require impls J(N);
68
+
// CHECK:STDERR: ^~~~
69
+
extend require impls J(N);
70
+
}
65
71
66
-
// J extends K so the type of K is completed, but is invalid.
72
+
//I extend J extends K so the type of K is completed, but is invalid.
67
73
//
68
74
// TODO: The error location should be the type, like in the class case above. We
69
75
// need a location for the type in context.bind_name_map() to use as the
70
76
// location to Convert().
71
77
//
72
78
// CHECK:STDERR: fail_interface_extend_require_impls_does_need_complete_interface.carbon:[[@LINE+4]]:1: note: in `require` used here [ResolvingSpecificHere]
// CHECK:STDERR: fail_constraint_extend_require_impls_does_need_complete_interface.carbon:[[@LINE+3]]:24: note: in `require` used here [ResolvingSpecificHere]
107
+
// CHECK:STDERR: extend require impls J(N);
108
+
// CHECK:STDERR: ^~~~
109
+
extend require impls J(N);
110
+
}
99
111
100
-
// J extends K so the type of K is completed, but is invalid.
112
+
//I extends J extends K so the type of K is completed, but is invalid.
101
113
// CHECK:STDERR: fail_constraint_extend_require_impls_does_need_complete_interface.carbon:[[@LINE+4]]:1: note: in `require` used here [ResolvingSpecificHere]
0 commit comments