1 val rec ((((((((x
)))))))) = fn () => ()
6 val 'a
rec f
= fn () => ()
11 val x
= "Hello, world!\n"
14 and rec f
= fn () => print x
22 val x
= "Hello, world!\n"
23 and rec f
= fn y
=> print y
29 val rec rec f
= fn () => ()
34 val rec f
= fn () => ()
35 and rec g
= fn () => ()
41 (* Checks parsing
, scoping
, typing
and dynamic semantics
of "val rec". *)
47 | _
=> raise Fail
"bug"
51 and rec b
= fn x
=> a(b(c(d(e(f(g x
))))))
52 and c
: 'a
-> 'a
as d
: 'a
-> 'a
= fn x
=> x
53 and rec e
as f
as g
= fn x
=> x
54 and h
: 'b
-> 'b
: 'b
-> 'b
= fn x
=> x
;