TypeScript/tests/baselines/reference/withStatement.js

22 lines
389 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [withStatement.ts]
declare var ooo:any;
with (ooo.eee.oo.ah_ah.ting.tang.walla.walla) { // error
bing = true; // no error
bang = true; // no error
function bar() {}
bar();
}
//// [withStatement.js]
with (ooo.eee.oo.ah_ah.ting.tang.walla.walla) {
bing = true; // no error
bang = true; // no error
function bar() { }
2014-07-13 01:04:16 +02:00
bar();
}