You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

33 lines
400 B

/*
* Broken at some point; regression test.
*/
/*===
redecl
===*/
function foo(x,y) {
print(x,y);
}
function foo(x,y) {
print('redecl');
}
foo(1,2);
/*===
second 1 2
===*/
/* Shadowing declarations inside a function (register bound) */
function functest() {
function foo(x,y) { print('first',x,y); }
function foo(x,y) { print('second',x,y); }
foo(1,2);
}
functest();