This website requires JavaScript.
Explore
Help
Sign In
prod2
/
nondescript
Watch
1
Star
1
Fork
You've already forked nondescript
0
Code
Issues
Pull Requests
Projects
Releases
Wiki
Activity
45ca5e3ef5
nondescript
/
tests
/
shadowing.nds
13 lines
136 B
Plaintext
Raw
Normal View
History
Unescape
Escape
WIP closures, fix compiler bug
2022-02-06 03:49:36 +01:00
var a = 5;
{
var a = 3;
{
var a = 2;
natives
2022-02-07 05:35:07 +01:00
print (a);
WIP closures, fix compiler bug
2022-02-06 03:49:36 +01:00
//expect:2.0
};
natives
2022-02-07 05:35:07 +01:00
print (a);
WIP closures, fix compiler bug
2022-02-06 03:49:36 +01:00
//expect:3.0
};
natives
2022-02-07 05:35:07 +01:00
print (a);
WIP closures, fix compiler bug
2022-02-06 03:49:36 +01:00
//expect:5.0