local -> var; scope reformatted; singleton is killed finally

This commit is contained in:
Dmitry Boulytchev 2021-01-31 22:25:31 +03:00
parent 5ae88f820d
commit 216e716251
11067 changed files with 12168 additions and 12173 deletions

View file

@ -1,7 +1,7 @@
fun a (x, y) {
local a = x + y, b = x - y;
{
local f = fun () {
var a = x + y, b = x - y;
(
var f = fun () {
write (x);
write (y);
write (a);
@ -14,9 +14,9 @@ fun a (x, y) {
y := 1000;
f
}
)
}
local x = read ();
var x = read ();
a (5, 7) ()