diff options
Diffstat (limited to 'src/vm.rs')
| -rw-r--r-- | src/vm.rs | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -527,6 +527,8 @@ impl VM { fn check_op(&mut self, op: Op) -> Result<(), Error> { match op { + Op::Unreachable => {} + Op::Jmp(_line) => {} Op::Return => { @@ -679,7 +681,7 @@ mod tests { test_string!(wrong_params, " f : fn -> int = fn a: int -> int {}", - [ErrorKind::TypeError(_, _)]); + [ErrorKind::TypeError(_, _), ErrorKind::TypeError(_, _)]); test_string!(wrong_ret, " f : fn -> int = fn {}", |
