diff --git a/src/vm.ts b/src/vm.ts index dd2a943..36f5e23 100644 --- a/src/vm.ts +++ b/src/vm.ts @@ -53,11 +53,11 @@ type NextProc = : C extends "[" ? Read extends "\x00" ? State - : State, []> + : State, []> : C extends "]" ? - R extends [] ? - never - : State, M, I, O, Tail, []> + R extends [] ? never + : Read extends "\x00" ? State, []> + : State, M, I, O, R, []> : State : never;