Skip to content

Commit

Permalink
Mark tests as fail_todo, remove temp test
Browse files Browse the repository at this point in the history
  • Loading branch information
josh11b committed Jan 2, 2025
1 parent a19c40f commit 81937c7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1,019 deletions.
8 changes: 4 additions & 4 deletions toolchain/check/testdata/struct/import.carbon
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ var b_ref: {.a: {.b: i32, .c: (i32,)}, .d: i32} =
class C(S:! {.a: i32, .b: i32}) {}
fn F() -> C({.a = 1, .b = 2});

// --- implicit.impl.carbon
// --- fail_todo_implicit.impl.carbon

impl package Implicit;

var a: {.a: i32} = a_ref;
var b: {.a: {.b: i32, .c: (i32,)}, .d: i32} = b_ref;
// CHECK:STDERR: implicit.impl.carbon:[[@LINE+7]]:1: error: cannot implicitly convert from `C({.a = 1, .b = 2})` to `C({.a = <cannot stringify inst1008 kind Call>, .b = <cannot stringify inst1017 kind Call>})` [ImplicitAsConversionFailure]
// CHECK:STDERR: fail_todo_implicit.impl.carbon:[[@LINE+7]]:1: error: cannot implicitly convert from `C({.a = 1, .b = 2})` to `C({.a = <cannot stringify inst1008 kind Call>, .b = <cannot stringify inst1017 kind Call>})` [ImplicitAsConversionFailure]
// CHECK:STDERR: var c: C({.a = 1, .b = 2}) = F();
// CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// CHECK:STDERR: implicit.impl.carbon:[[@LINE+4]]:1: note: type `C({.a = 1, .b = 2})` does not implement interface `Core.ImplicitAs(C({.a = <cannot stringify inst1008 kind Call>, .b = <cannot stringify inst1017 kind Call>}))` [MissingImplInMemberAccessNote]
// CHECK:STDERR: fail_todo_implicit.impl.carbon:[[@LINE+4]]:1: note: type `C({.a = 1, .b = 2})` does not implement interface `Core.ImplicitAs(C({.a = <cannot stringify inst1008 kind Call>, .b = <cannot stringify inst1017 kind Call>}))` [MissingImplInMemberAccessNote]
// CHECK:STDERR: var c: C({.a = 1, .b = 2}) = F();
// CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// CHECK:STDERR:
Expand Down Expand Up @@ -247,7 +247,7 @@ var c_bad: C({.a = 3, .b = 4}) = F();
// CHECK:STDOUT: %S.patt.loc8_9.2 => constants.%struct.4
// CHECK:STDOUT: }
// CHECK:STDOUT:
// CHECK:STDOUT: --- implicit.impl.carbon
// CHECK:STDOUT: --- fail_todo_implicit.impl.carbon
// CHECK:STDOUT:
// CHECK:STDOUT: constants {
// CHECK:STDOUT: %N: Core.IntLiteral = bind_symbolic_name N, 0 [symbolic]
Expand Down
Loading

0 comments on commit 81937c7

Please sign in to comment.