21 lines
389 B
JavaScript
21 lines
389 B
JavaScript
//// [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() { }
|
|
bar();
|
|
}
|