mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-27 15:14:31 +00:00
Fix typo in ImplDeclInInvalidScope diagnostic (#7785)
And update the associated file test.
This commit is contained in:
1 parent
4416f3525b
commit
e962b12e53
2 files changed
+5
-5
No files matched your search
@@ -147,7 +147,7 @@ static auto ScopesMatch(Context& context, const SemIR::Impl& new_impl,
|
||||
|
||||
// The redecl is is an invalid scope.
|
||||
CARBON_DIAGNOSTIC(ImplDeclInInvalidScope, Error,
|
||||
"impl redeclation not in a declarative scope; "
|
||||
"impl redeclaration not in a declarative scope; "
|
||||
"redeclaration is allowed only in a class or namespace");
|
||||
context.emitter().Emit(new_impl.latest_decl_id(), ImplDeclInInvalidScope);
|
||||
return ImplRedeclType::DiagnosedInvalidRedecl;
|
||||
|
||||
Reference in new issue
Block a user