mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Add support for importing interfaces. (#3726)
Interface support is pretty skeletal so this may need additions later, but I think it's still worthwhile to fill in the necessary bits now. With this change, the expectation is then that everything we have right now which _can_ be imported, is supported for import (at least for the "current package, no overlap" case).
This commit is contained in:
@@ -230,7 +230,7 @@ auto HandleImplDefinitionStart(Context& context,
|
||||
auto [impl_id, impl_decl_id] = BuildImplDecl(context, parse_node);
|
||||
auto& impl_info = context.impls().Get(impl_id);
|
||||
|
||||
if (impl_info.definition_id.is_valid()) {
|
||||
if (impl_info.is_defined()) {
|
||||
CARBON_DIAGNOSTIC(ImplRedefinition, Error,
|
||||
"Redefinition of `impl {0} as {1}`.", SemIR::TypeId,
|
||||
SemIR::TypeId);
|
||||
|
||||
Reference in New Issue
Block a user