TypeScript/tests/baselines/reference/nestedSelf.types

32 lines
1.1 KiB
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/nestedSelf.ts ===
module M {
2015-04-13 23:01:57 +02:00
>M : typeof M, Symbol(M, Decl(nestedSelf.ts, 0, 0))
2014-08-15 23:33:16 +02:00
export class C {
2015-04-13 23:01:57 +02:00
>C : C, Symbol(C, Decl(nestedSelf.ts, 0, 10))
2014-08-15 23:33:16 +02:00
public n = 42;
2015-04-13 23:01:57 +02:00
>n : number, Symbol(n, Decl(nestedSelf.ts, 1, 17))
2015-04-13 21:36:11 +02:00
>42 : number
2014-08-15 23:33:16 +02:00
public foo() { [1,2,3].map((x) => { return this.n * x; })}
2015-04-13 23:01:57 +02:00
>foo : () => void, Symbol(foo, Decl(nestedSelf.ts, 2, 17))
2014-08-15 23:33:16 +02:00
>[1,2,3].map((x) => { return this.n * x; }) : number[]
2015-04-13 23:01:57 +02:00
>[1,2,3].map : <U>(callbackfn: (value: number, index: number, array: number[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92))
2014-08-15 23:33:16 +02:00
>[1,2,3] : number[]
2015-04-13 21:36:11 +02:00
>1 : number
>2 : number
>3 : number
2015-04-13 23:01:57 +02:00
>map : <U>(callbackfn: (value: number, index: number, array: number[]) => U, thisArg?: any) => U[], Symbol(Array.map, Decl(lib.d.ts, 1115, 92))
2014-08-15 23:33:16 +02:00
>(x) => { return this.n * x; } : (x: number) => number
2015-04-13 23:01:57 +02:00
>x : number, Symbol(x, Decl(nestedSelf.ts, 3, 31))
2014-08-15 23:33:16 +02:00
>this.n * x : number
2015-04-13 23:01:57 +02:00
>this.n : number, Symbol(n, Decl(nestedSelf.ts, 1, 17))
>this : C, Symbol(C, Decl(nestedSelf.ts, 0, 10))
>n : number, Symbol(n, Decl(nestedSelf.ts, 1, 17))
>x : number, Symbol(x, Decl(nestedSelf.ts, 3, 31))
2014-08-15 23:33:16 +02:00
}
}