Remove unused variable
This commit is contained in:
parent
383302c1c2
commit
d04a70e464
@ -128,7 +128,7 @@ impl Block {
|
|||||||
StmtKind::Import(_) => todo!(),
|
StmtKind::Import(_) => todo!(),
|
||||||
StmtKind::Expression(expression) => {
|
StmtKind::Expression(expression) => {
|
||||||
let res = expression.typecheck(&mut state, None);
|
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() {
|
if let Ok((kind, _)) = expression.return_type() {
|
||||||
Some((kind, expression))
|
Some((kind, expression))
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user