lama_byterun/regression/test065.expr
Dmitry Boulytchev d99588a6db FCF (alpha)
2019-10-16 21:07:27 +03:00

23 lines
No EOL
231 B
Text

fun f () {
local x, l = {};
fun g () {return x}
x := 1;
l := g : l;
x := 2;
l := g : l;
return l
}
fun p (l) {
case l of
{} -> skip
| h : tl -> write (h ()); p (tl)
esac
}
local x = read ();
p (f ())