mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Test class with multiple extend (#4504)
Adds coverage for an existing diagnostic. Code appears to work without modification. --------- Co-authored-by: Josh L <josh11b@users.noreply.github.com>
This commit is contained in:
@@ -493,9 +493,6 @@ auto Context::LookupQualifiedName(SemIRLoc loc, SemIR::NameId name_id,
|
||||
|
||||
// If this is our second lookup result, diagnose an ambiguity.
|
||||
if (result.inst_id.is_valid()) {
|
||||
// TODO: This is currently not reachable because the only scope that can
|
||||
// extend is a class scope, and it can only extend a single base class.
|
||||
// Add test coverage once this is possible.
|
||||
CARBON_DIAGNOSTIC(
|
||||
NameAmbiguousDueToExtend, Error,
|
||||
"ambiguous use of name `{0}` found in multiple extended scopes",
|
||||
|
||||
Reference in New Issue
Block a user