TypeScript/tests/baselines/reference/ES5For-of9.types

32 lines
1 KiB
Plaintext
Raw Normal View History

=== tests/cases/conformance/statements/for-ofStatements/ES5For-of9.ts ===
function foo() {
2015-04-13 23:01:57 +02:00
>foo : () => { x: number; }, Symbol(foo, Decl(ES5For-of9.ts, 0, 0))
return { x: 0 };
>{ x: 0 } : { x: number; }
2015-04-13 23:01:57 +02:00
>x : number, Symbol(x, Decl(ES5For-of9.ts, 1, 12))
2015-04-13 21:36:11 +02:00
>0 : number
}
for (foo().x of []) {
2015-04-13 23:01:57 +02:00
>foo().x : number, Symbol(x, Decl(ES5For-of9.ts, 1, 12))
>foo() : { x: number; }
2015-04-13 23:01:57 +02:00
>foo : () => { x: number; }, Symbol(foo, Decl(ES5For-of9.ts, 0, 0))
>x : number, Symbol(x, Decl(ES5For-of9.ts, 1, 12))
>[] : undefined[]
for (foo().x of []) {
2015-04-13 23:01:57 +02:00
>foo().x : number, Symbol(x, Decl(ES5For-of9.ts, 1, 12))
>foo() : { x: number; }
2015-04-13 23:01:57 +02:00
>foo : () => { x: number; }, Symbol(foo, Decl(ES5For-of9.ts, 0, 0))
>x : number, Symbol(x, Decl(ES5For-of9.ts, 1, 12))
>[] : undefined[]
var p = foo().x;
2015-04-13 23:01:57 +02:00
>p : number, Symbol(p, Decl(ES5For-of9.ts, 5, 11))
>foo().x : number, Symbol(x, Decl(ES5For-of9.ts, 1, 12))
>foo() : { x: number; }
2015-04-13 23:01:57 +02:00
>foo : () => { x: number; }, Symbol(foo, Decl(ES5For-of9.ts, 0, 0))
>x : number, Symbol(x, Decl(ES5For-of9.ts, 1, 12))
}
}