This commit is contained in:
Ginger Bill
2017-07-29 13:01:28 +01:00
6 changed files with 41 additions and 23 deletions

View File

@@ -4619,10 +4619,10 @@ Entity *check_selector(Checker *c, Operand *operand, AstNode *node, Type *type_h
bool implicit_is_found = is_entity_implicitly_imported(e, entity);
bool is_not_exported = !is_entity_exported(entity);
if (!implicit_is_found) {
is_not_exported = false;
} else if (entity->kind == Entity_ImportName) {
if (entity->kind == Entity_ImportName) {
is_not_exported = true;
} else if (!implicit_is_found) {
is_not_exported = false;
}
if (is_not_exported) {