diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-07-29 13:01:28 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-07-29 13:01:28 +0100 |
| commit | 3546391311d84376a758ee0fcc806e192d6a18ce (patch) | |
| tree | f8b68340491e86192b8acbe6e7287a8236fed127 /src/check_expr.cpp | |
| parent | 24c812115e8cbc905b1a5c1d73182da5db94dfde (diff) | |
| parent | 28be0ad69b98868c5a77f0fe9d2898391b1ac400 (diff) | |
Merge branch 'master' of https://github.com/gingerBill/Odin
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index e25a687b1..20dce4a47 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -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) { |