We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9ab24f5 + dda5ebb commit a3c5220Copy full SHA for a3c5220
src/lpython/semantics/python_ast_to_asr.cpp
@@ -3830,7 +3830,8 @@ class SymbolTableVisitor : public CommonVisitor<SymbolTableVisitor> {
3830
tmp0 = ASR::make_TranslationUnit_t(al, x.base.base.loc,
3831
current_scope, nullptr, 0);
3832
}
3833
- LCOMPILERS_ASSERT(ASR::is_a<ASR::TranslationUnit_t>(*tmp0));
+ LCOMPILERS_ASSERT(ASR::is_a<ASR::unit_t>(*tmp0) &&
3834
+ ASR::is_a<ASR::TranslationUnit_t>(*ASR::down_cast<ASR::unit_t>(tmp0)));
3835
global_scope = current_scope;
3836
3837
ASR::Module_t* module_sym = nullptr;
0 commit comments