Find a solution for the removal of the SetLocal instruction
This commit is contained in:
parent
12092c30f4
commit
03103e4fa1
@ -1608,6 +1608,9 @@ impl<'src> Compiler<'src> {
|
|||||||
self.current_scope,
|
self.current_scope,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// The last instruction is now an assignment, so it should not yield a value
|
||||||
|
self.instructions.last_mut().unwrap().1 = Type::None;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user