Skip to content

Commit 2ea67a4

Browse files
committed
wip
1 parent 957e592 commit 2ea67a4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lpython/semantics/python_ast_to_asr.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4591,6 +4591,7 @@ class BodyVisitor : public CommonVisitor<BodyVisitor> {
45914591
// never cast into expression using ASRUtils::EXPR
45924592
// Just ignore and exit the function naturally.
45934593
if( !ASR::is_a<ASR::stmt_t>(*tmp) ) {
4594+
LFORTRAN_ASSERT(ASR::is_a<ASR::expr_t>(*tmp));
45944595
tmp = nullptr;
45954596
}
45964597
}

0 commit comments

Comments
 (0)