1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
=== tests/cases/conformance/statements/for-ofStatements/ES5For-of34.ts ===
function foo() {
>foo : Symbol(foo, Decl(ES5For-of34.ts, 0, 0))
return { x: 0 };
>x : Symbol(x, Decl(ES5For-of34.ts, 1, 12))
}
for (foo().x of ['a', 'b', 'c']) {
>foo().x : Symbol(x, Decl(ES5For-of34.ts, 1, 12))
>foo : Symbol(foo, Decl(ES5For-of34.ts, 0, 0))
>x : Symbol(x, Decl(ES5For-of34.ts, 1, 12))
var p = foo().x;
>p : Symbol(p, Decl(ES5For-of34.ts, 4, 7))
>foo().x : Symbol(x, Decl(ES5For-of34.ts, 1, 12))
>foo : Symbol(foo, Decl(ES5For-of34.ts, 0, 0))
>x : Symbol(x, Decl(ES5For-of34.ts, 1, 12))
}
|