Skip to content

Commit

Permalink
refactor: Test a closure conversion bug
Browse files Browse the repository at this point in the history
  • Loading branch information
vain0x committed Oct 4, 2019
1 parent f022dbb commit c9dfb98
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions boot/tests/features/let_fun_closure/let_fun_closure.fs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,21 @@ let recursiveCase () =

assert (go 0)

let mutuallyRecursiveCase () =
assert (f1 () = 1)

let f1 () = f2 ()
let f2 () = f3 ()
let f3 () = f4 ()
let f4 () = f5 ()
let f5 () = f6 ()
let f6 () = f7 ()
let f7 () = a
let a = 1

let main _ =
basicCase ()
transitiveCase ()
recursiveCase ()
mutuallyRecursiveCase ()
0

0 comments on commit c9dfb98

Please sign in to comment.