Merge remote-tracking branch 'origin/master' into fix/temp-count-if-condition

This commit is contained in:
Pragyansh Chaturvedi
2026-09-24 16:44:47 +05:30
15 changed files with 317 additions and 17 deletions

View File

@ -412,11 +412,11 @@ def process_stmt(
builder, stmt, local_sym_tab, ret_type, compilation_context
)
else:
# Silently dropping a statement makes the program mean something other
# than what it says, so say so.
logger.warning(
f"Unsupported statement on line {getattr(stmt, 'lineno', '?')}, "
f"ignored: {type(stmt).__name__}"
# Dropping a statement makes the program mean something other than what
# it says (a loop compiles to nothing), so refuse rather than warn.
raise NotImplementedError(
f"Unsupported statement on line {getattr(stmt, 'lineno', '?')}: "
f"{type(stmt).__name__}"
)
return did_return