diff options
| author | gingerBill <bill+github@gingerbill.org> | 2017-07-24 07:57:09 +0100 |
|---|---|---|
| committer | gingerBill <bill+github@gingerbill.org> | 2017-07-24 07:57:09 +0100 |
| commit | f0980c0a98aad1ce4712197e98608e0b1a886a44 (patch) | |
| tree | ad1c82a0b4b4ffa8449ab46a61339e41b0957c43 /src/check_expr.cpp | |
| parent | 1df4aa90ce10dca629b8af73e74f884ab2339096 (diff) | |
Fix import name exportation bug; Fix procedure type printing
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 fcaf943a7..a57ebbd0d 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -4630,10 +4630,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) { |