File: crashInResolveInterface.types

package info (click to toggle)
node-typescript 2.1.5-1~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 203,960 kB
  • sloc: sh: 11; makefile: 5
file content (53 lines) | stat: -rw-r--r-- 1,267 bytes parent folder | download | duplicates (2)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
=== tests/cases/compiler/file2.ts ===
///<reference path='file1.ts'/>
declare var c: C;
>c : C
>C : C

interface C {
>C : C

    count(countTitle?: string): void;
>count : (countTitle?: string) => void
>countTitle : string
}
interface C {
>C : C

    log(message?: any, ...optionalParams: any[]): void;
>log : (message?: any, ...optionalParams: any[]) => void
>message : any
>optionalParams : any[]
}

=== tests/cases/compiler/file1.ts ===
interface Q<T> {
>Q : Q<T>
>T : T

    each(action: (item: T, index: number) => void): void;
>each : (action: (item: T, index: number) => void) => void
>action : (item: T, index: number) => void
>item : T
>T : T
>index : number
}
var q1: Q<{ a: number; }>;
>q1 : Q<{ a: number; }>
>Q : Q<T>
>a : number

var x = q1.each(x => c.log(x));
>x : void
>q1.each(x => c.log(x)) : void
>q1.each : (action: (item: { a: number; }, index: number) => void) => void
>q1 : Q<{ a: number; }>
>each : (action: (item: { a: number; }, index: number) => void) => void
>x => c.log(x) : (x: { a: number; }) => void
>x : { a: number; }
>c.log(x) : void
>c.log : (message?: any, ...optionalParams: any[]) => void
>c : C
>log : (message?: any, ...optionalParams: any[]) => void
>x : { a: number; }