Skip to content

Commit

Permalink
Move impl one line to make the error clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
bricknerb committed Jan 3, 2025
1 parent 8c572f4 commit fa29a55
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,11 @@ interface A {
}
class X {
extend impl as A {
// CHECK:STDERR: fail_using_poisoned_name_in_impl_outside_class.carbon:[[@LINE+3]]:29: error: `impl as` can only be used in a class [ImplAsOutsideClass]
// CHECK:STDERR: fn F() { return; } impl as B {}
// CHECK:STDERR: ^~
fn F() { return; } impl as B {}
fn F() { return; }
// CHECK:STDERR: fail_using_poisoned_name_in_impl_outside_class.carbon:[[@LINE+3]]:10: error: `impl as` can only be used in a class [ImplAsOutsideClass]
// CHECK:STDERR: impl as B {}
// CHECK:STDERR: ^~
impl as B {}
}
}

Expand Down

0 comments on commit fa29a55

Please sign in to comment.