lama_byterun/regression/test065.expr
2019-10-11 17:25:58 +03:00

21 lines
No EOL
211 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
}
p (f ())