mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-07 15:28:49 +00:00
Added a smoke test for local scopes
This commit is contained in:
parent
5527013a7f
commit
a3b12425fd
4 changed files with 13 additions and 1 deletions
|
|
@ -556,7 +556,7 @@ module Expr =
|
|||
let vars, body =
|
||||
List.fold_left
|
||||
(fun (vs, bd) -> function
|
||||
| (name, `Variable value) -> name :: vs, (match value with None -> bd | Some v -> Seq (Assign (Var name, v), bd))
|
||||
| (name, `Variable value) -> name :: vs, (match value with None -> bd | Some v -> Seq (Assign (Ref name, v), bd))
|
||||
| _ -> invalid_arg "function"
|
||||
)
|
||||
([], expr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue