Remove unused variable

This commit is contained in:
Sofia 2025-07-09 22:33:56 +03:00
parent 383302c1c2
commit d04a70e464

View File

@ -128,7 +128,7 @@ impl Block {
StmtKind::Import(_) => todo!(),
StmtKind::Expression(expression) => {
let res = expression.typecheck(&mut state, None);
let res_t = state.or_else(res, Void, expression.1);
state.or_else(res, Void, expression.1);
if let Ok((kind, _)) = expression.return_type() {
Some((kind, expression))
} else {