TypeScript/tests/baselines/reference/withStatementNestedScope.js

20 lines
305 B
TypeScript
Raw Normal View History

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