lama_byterun/regression/test065.expr

23 lines
231 B
Text
Raw Normal View History

2019-10-11 17:25:58 +03:00
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
}
2019-10-16 21:07:27 +03:00
local x = read ();
2019-10-11 17:25:58 +03:00
p (f ())