25 lines
768 B
Text
25 lines
768 B
Text
|
=== tests/cases/conformance/statements/for-ofStatements/ES5For-of9.ts ===
|
||
|
function foo() {
|
||
|
>foo : Symbol(foo, Decl(ES5For-of9.ts, 0, 0))
|
||
|
|
||
|
return { x: 0 };
|
||
|
>x : Symbol(x, Decl(ES5For-of9.ts, 1, 12))
|
||
|
}
|
||
|
for (foo().x of []) {
|
||
|
>foo().x : Symbol(x, Decl(ES5For-of9.ts, 1, 12))
|
||
|
>foo : Symbol(foo, Decl(ES5For-of9.ts, 0, 0))
|
||
|
>x : Symbol(x, Decl(ES5For-of9.ts, 1, 12))
|
||
|
|
||
|
for (foo().x of []) {
|
||
|
>foo().x : Symbol(x, Decl(ES5For-of9.ts, 1, 12))
|
||
|
>foo : Symbol(foo, Decl(ES5For-of9.ts, 0, 0))
|
||
|
>x : Symbol(x, Decl(ES5For-of9.ts, 1, 12))
|
||
|
|
||
|
var p = foo().x;
|
||
|
>p : Symbol(p, Decl(ES5For-of9.ts, 5, 11))
|
||
|
>foo().x : Symbol(x, Decl(ES5For-of9.ts, 1, 12))
|
||
|
>foo : Symbol(foo, Decl(ES5For-of9.ts, 0, 0))
|
||
|
>x : Symbol(x, Decl(ES5For-of9.ts, 1, 12))
|
||
|
}
|
||
|
}
|