31 lines
716 B
Text
31 lines
716 B
Text
=== tests/cases/compiler/nestedSelf.ts ===
|
|
module M {
|
|
>M : typeof M
|
|
|
|
export class C {
|
|
>C : C
|
|
|
|
public n = 42;
|
|
>n : number
|
|
>42 : number
|
|
|
|
public foo() { [1,2,3].map((x) => { return this.n * x; })}
|
|
>foo : () => void
|
|
>[1,2,3].map((x) => { return this.n * x; }) : number[]
|
|
>[1,2,3].map : <U>(callbackfn: (value: number, index: number, array: number[]) => U, thisArg?: any) => U[]
|
|
>[1,2,3] : number[]
|
|
>1 : number
|
|
>2 : number
|
|
>3 : number
|
|
>map : <U>(callbackfn: (value: number, index: number, array: number[]) => U, thisArg?: any) => U[]
|
|
>(x) => { return this.n * x; } : (x: number) => number
|
|
>x : number
|
|
>this.n * x : number
|
|
>this.n : number
|
|
>this : this
|
|
>n : number
|
|
>x : number
|
|
}
|
|
}
|
|
|
|
|