Skip to content

Commit 52d42fa

Browse files
committed
fix-test
1 parent 9914802 commit 52d42fa

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

toolchain/check/testdata/impl/fail_undefined_interface.carbon

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,28 +65,30 @@ impl C as J where .X = ();
6565
// CHECK:STDERR:
6666
impl C as J where .X = () {}
6767

68-
// --- fail_class_with_qualified_rewrite.carbon
68+
// --- fail_todo_class_with_qualified_rewrite.carbon
6969
library "[[@TEST_NAME]]";
7070

7171
interface J;
7272
interface K { let X:! type; }
7373
class C {}
7474

75-
// TODO: The failure here should be that J is incomplete, once the rewrite of
76-
// `.(K.X)` works. Since any rewrite in the decl requires us to know the size of
77-
// the witness table which requires all interfaces to be complete.
75+
// TODO: There should be no error here.
7876
//
79-
// CHECK:STDERR: fail_class_with_qualified_rewrite.carbon:[[@LINE+8]]:38: error: expected identifier or `Self` after `.` [ExpectedIdentifierOrSelfAfterPeriod]
77+
// CHECK:STDERR: fail_todo_class_with_qualified_rewrite.carbon:[[@LINE+8]]:38: error: expected identifier or `Self` after `.` [ExpectedIdentifierOrSelfAfterPeriod]
8078
// CHECK:STDERR: impl C as J where .Self impls K and .(K.X) = ();
8179
// CHECK:STDERR: ^
8280
// CHECK:STDERR:
83-
// CHECK:STDERR: fail_class_with_qualified_rewrite.carbon:[[@LINE+4]]:38: error: semantics TODO: `handle invalid parse trees in `check`` [SemanticsTodo]
81+
// CHECK:STDERR: fail_todo_class_with_qualified_rewrite.carbon:[[@LINE+4]]:38: error: semantics TODO: `handle invalid parse trees in `check`` [SemanticsTodo]
8482
// CHECK:STDERR: impl C as J where .Self impls K and .(K.X) = ();
8583
// CHECK:STDERR: ^
8684
// CHECK:STDERR:
8785
impl C as J where .Self impls K and .(K.X) = ();
8886

89-
// CHECK:STDERR: fail_class_with_qualified_rewrite.carbon:[[@LINE+4]]:38: error: expected identifier or `Self` after `.` [ExpectedIdentifierOrSelfAfterPeriod]
87+
// TODO: The failure here should be that J is incomplete, once the rewrite of
88+
// `.(K.X)` works. Since any rewrite in the decl requires us to know the size of
89+
// the witness table which requires all interfaces to be complete.
90+
//
91+
// CHECK:STDERR: fail_todo_class_with_qualified_rewrite.carbon:[[@LINE+4]]:38: error: expected identifier or `Self` after `.` [ExpectedIdentifierOrSelfAfterPeriod]
9092
// CHECK:STDERR: impl C as J where .Self impls K and .(K.X) = () {}
9193
// CHECK:STDERR: ^
9294
// CHECK:STDERR:
@@ -255,7 +257,7 @@ impl C as I where .Self impls Incomplete {
255257
// CHECK:STDOUT: .Self = constants.%C
256258
// CHECK:STDOUT: }
257259
// CHECK:STDOUT:
258-
// CHECK:STDOUT: --- fail_class_with_qualified_rewrite.carbon
260+
// CHECK:STDOUT: --- fail_todo_class_with_qualified_rewrite.carbon
259261
// CHECK:STDOUT:
260262
// CHECK:STDOUT: constants {
261263
// CHECK:STDOUT: %K.type: type = facet_type <@K> [concrete]

0 commit comments

Comments
 (0)