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