diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-11-17 22:58:00 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-11-17 22:58:00 +0000 |
| commit | 24ca1065214f51cfbeb9c0eff98002c7d33139a2 (patch) | |
| tree | f8504275c6b20ac4a3aaa47d7d7f6b982f8aabe0 /src/checker/expr.cpp | |
| parent | 4895031df56c8378db756db8d330f5cb07d4b14a (diff) | |
v0.0.3 Build
Diffstat (limited to 'src/checker/expr.cpp')
| -rw-r--r-- | src/checker/expr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/checker/expr.cpp b/src/checker/expr.cpp index b0b7a0f9c..1d9cad048 100644 --- a/src/checker/expr.cpp +++ b/src/checker/expr.cpp @@ -92,7 +92,7 @@ b32 check_is_assignable_to(Checker *c, Operand *operand, Type *type, b32 is_argu if (is_type_maybe(dst)) { Type *elem = base_type(dst)->Maybe.elem; - return are_types_identical(elem, src); + return are_types_identical(elem, s); } if (is_type_untyped_nil(src)) { @@ -2458,6 +2458,7 @@ Entity *check_selector(Checker *c, Operand *operand, AstNode *node) { GB_ASSERT(entity->type != NULL); b32 is_not_exported = !is_entity_exported(entity); + // TODO(bill): Fix this for `#import "file.odin" as .` if (is_not_exported) { auto found = map_get(&e->ImportName.scope->implicit, hash_string(sel_name)); if (!found && e->ImportName.scope != entity->scope) { |