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) {
|
2014-08-16 00:49:09 +02:00
|
|
|
bing = true; // no error
|
|
|
|
bang = true; // no error
|
2014-07-13 01:04:16 +02:00
|
|
|
function bar() {
|
|
|
|
}
|
|
|
|
bar();
|
|
|
|
}
|