TypeScript/tests/cases/compiler/withStatementNestedScope.ts

8 lines
121 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
var x = 1;
with (x) {
function f(a: number) {
return 1;
}
// should be any
var r = f(1);
}