File: thisCapture1.types

package info (click to toggle)
node-typescript 2.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 203,952 kB
  • ctags: 52,987
  • sloc: sh: 11; makefile: 5
file content (35 lines) | stat: -rw-r--r-- 736 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
=== tests/cases/compiler/thisCapture1.ts ===
class X {
>X : X

    private y = 0;
>y : number
>0 : 0

    public getSettings(keys: string[]): any {
>getSettings : (keys: string[]) => any
>keys : string[]

        var ret: any;
>ret : any

        return ret.always(() => {
>ret.always(() => {            this.y = 0;        }).promise() : any
>ret.always(() => {            this.y = 0;        }).promise : any
>ret.always(() => {            this.y = 0;        }) : any
>ret.always : any
>ret : any
>always : any
>() => {            this.y = 0;        } : () => void

            this.y = 0;
>this.y = 0 : 0
>this.y : number
>this : this
>y : number
>0 : 0

        }).promise();
>promise : any
    }
}