lama_byterun/regression/test096.lama

23 lines
215 B
Text
Raw Normal View History

2020-01-05 03:33:17 +03:00
fun f () {
var x, l = {};
2020-01-05 03:33:17 +03:00
fun g () { x}
x := 1;
l := g : l;
x := 2;
l := g : l;
l
}
fun p (l) {
case l of
{} -> skip
| h : tl -> write (h ()); p (tl)
esac
}
var x = read ();
2020-01-05 03:33:17 +03:00
p (f ())