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/facet/fail_incomplete.carbon
-23Lines changed: 0 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -80,29 +80,6 @@ impl C as X;
80
80
// Requires X complete.
81
81
impl C asX {}
82
82
83
-
// --- fail_incomplete_through_constraint.carbon
84
-
library "[[@TEST_NAME]]";
85
-
86
-
interfaceZ;
87
-
constraint Y {
88
-
extend require impls Z;
89
-
}
90
-
91
-
class C {}
92
-
93
-
// Requires Y identified.
94
-
impl C asY;
95
-
96
-
// Requires Y complete.
97
-
// CHECK:STDERR: fail_incomplete_through_constraint.carbon:[[@LINE+7]]:1: error: definition of impl as incomplete facet type `Y` [ImplAsIncompleteFacetTypeDefinition]
98
-
// CHECK:STDERR: impl C as Y {}
99
-
// CHECK:STDERR: ^~~~~~~~~~~~~
100
-
// CHECK:STDERR: fail_incomplete_through_constraint.carbon:[[@LINE-14]]:1: note: interface was forward declared here [InterfaceForwardDeclaredHere]
Copy file name to clipboardExpand all lines: toolchain/check/testdata/interface/incomplete.carbon
+53-41Lines changed: 53 additions & 41 deletions
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,22 @@ interface B {
44
44
require impls A;
45
45
}
46
46
47
+
// --- fail_incomplete_extend_constraint.carbon
48
+
library "[[@TEST_NAME]]";
49
+
50
+
constraint A;
51
+
52
+
interfaceB {
53
+
// CHECK:STDERR: fail_incomplete_extend_constraint.carbon:[[@LINE+7]]:24: error: facet type `A` cannot be identified in `require` declaration [RequireImplsUnidentifiedFacetType]
54
+
// CHECK:STDERR: extend require impls A;
55
+
// CHECK:STDERR: ^
56
+
// CHECK:STDERR: fail_incomplete_extend_constraint.carbon:[[@LINE-6]]:1: note: constraint was forward declared here [NamedConstraintForwardDeclaredHere]
57
+
// CHECK:STDERR: constraint A;
58
+
// CHECK:STDERR: ^~~~~~~~~~~~~
59
+
// CHECK:STDERR:
60
+
extend require impls A;
61
+
}
62
+
47
63
// --- incomplete_interface.carbon
48
64
library "[[@TEST_NAME]]";
49
65
@@ -61,18 +77,16 @@ library "[[@TEST_NAME]]";
61
77
interfaceA;
62
78
63
79
interfaceB {
80
+
// CHECK:STDERR: fail_incomplete_extend_interface.carbon:[[@LINE+7]]:24: error: `extend require` of incomplete facet type `A` [RequireImplsIncompleteFacetType]
81
+
// CHECK:STDERR: extend require impls A;
82
+
// CHECK:STDERR: ^
83
+
// CHECK:STDERR: fail_incomplete_extend_interface.carbon:[[@LINE-6]]:1: note: interface was forward declared here [InterfaceForwardDeclaredHere]
84
+
// CHECK:STDERR: interface A;
85
+
// CHECK:STDERR: ^~~~~~~~~~~~
86
+
// CHECK:STDERR:
64
87
extend require impls A;
65
88
}
66
89
67
-
// CHECK:STDERR: fail_incomplete_extend_interface.carbon:[[@LINE+7]]:1: error: definition of impl as incomplete facet type `B` [ImplAsIncompleteFacetTypeDefinition]
68
-
// CHECK:STDERR: impl () as B {}
69
-
// CHECK:STDERR: ^~~~~~~~~~~~~~
70
-
// CHECK:STDERR: fail_incomplete_extend_interface.carbon:[[@LINE-9]]:1: note: interface was forward declared here [InterfaceForwardDeclaredHere]
0 commit comments