Skip to content

Commit 0aa157e

Browse files
committed
Use add_or_overwrite_symbol
1 parent d20a094 commit 0aa157e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lpython/semantics/python_ast_to_asr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4252,7 +4252,7 @@ class SymbolTableVisitor : public CommonVisitor<SymbolTableVisitor> {
42524252
std::string new_sym_name = ASRUtils::get_mangled_name(m, remote_sym);
42534253
ASR::symbol_t *t = import_from_module(al, m, current_scope, msym,
42544254
remote_sym, new_sym_name, x.base.base.loc, true);
4255-
current_scope->add_symbol(new_sym_name, t);
4255+
current_scope->add_or_overwrite_symbol(new_sym_name, t);
42564256
}
42574257

42584258
tmp = nullptr;

0 commit comments

Comments
 (0)