2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/file2.ts ===
|
|
|
|
///<reference path='file1.ts'/>
|
|
|
|
declare var c: C;
|
2015-04-13 22:54:22 +02:00
|
|
|
>c : C, Symbol(c,Decl(file2.ts,1,11))
|
|
|
|
>C : C, Symbol(C,Decl(file2.ts,1,17),Decl(file2.ts,4,1))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
interface C {
|
2015-04-13 22:54:22 +02:00
|
|
|
>C : C, Symbol(C,Decl(file2.ts,1,17),Decl(file2.ts,4,1))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
count(countTitle?: string): void;
|
2015-04-13 22:54:22 +02:00
|
|
|
>count : (countTitle?: string) => void, Symbol(count,Decl(file2.ts,2,13))
|
|
|
|
>countTitle : string, Symbol(countTitle,Decl(file2.ts,3,10))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
interface C {
|
2015-04-13 22:54:22 +02:00
|
|
|
>C : C, Symbol(C,Decl(file2.ts,1,17),Decl(file2.ts,4,1))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
log(message?: any, ...optionalParams: any[]): void;
|
2015-04-13 22:54:22 +02:00
|
|
|
>log : (message?: any, ...optionalParams: any[]) => void, Symbol(log,Decl(file2.ts,5,13))
|
|
|
|
>message : any, Symbol(message,Decl(file2.ts,6,8))
|
|
|
|
>optionalParams : any[], Symbol(optionalParams,Decl(file2.ts,6,22))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
=== tests/cases/compiler/file1.ts ===
|
|
|
|
interface Q<T> {
|
2015-04-13 22:54:22 +02:00
|
|
|
>Q : Q<T>, Symbol(Q,Decl(file1.ts,0,0))
|
|
|
|
>T : T, Symbol(T,Decl(file1.ts,0,12))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
each(action: (item: T, index: number) => void): void;
|
2015-04-13 22:54:22 +02:00
|
|
|
>each : (action: (item: T, index: number) => void) => void, Symbol(each,Decl(file1.ts,0,16))
|
|
|
|
>action : (item: T, index: number) => void, Symbol(action,Decl(file1.ts,1,9))
|
|
|
|
>item : T, Symbol(item,Decl(file1.ts,1,18))
|
|
|
|
>T : T, Symbol(T,Decl(file1.ts,0,12))
|
|
|
|
>index : number, Symbol(index,Decl(file1.ts,1,26))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
var q1: Q<{ a: number; }>;
|
2015-04-13 22:54:22 +02:00
|
|
|
>q1 : Q<{ a: number; }>, Symbol(q1,Decl(file1.ts,3,3))
|
|
|
|
>Q : Q<T>, Symbol(Q,Decl(file1.ts,0,0))
|
|
|
|
>a : number, Symbol(a,Decl(file1.ts,3,11))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var x = q1.each(x => c.log(x));
|
2015-04-13 22:54:22 +02:00
|
|
|
>x : void, Symbol(x,Decl(file1.ts,4,3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>q1.each(x => c.log(x)) : void
|
2015-04-13 22:54:22 +02:00
|
|
|
>q1.each : (action: (item: { a: number; }, index: number) => void) => void, Symbol(Q.each,Decl(file1.ts,0,16))
|
|
|
|
>q1 : Q<{ a: number; }>, Symbol(q1,Decl(file1.ts,3,3))
|
|
|
|
>each : (action: (item: { a: number; }, index: number) => void) => void, Symbol(Q.each,Decl(file1.ts,0,16))
|
2014-08-15 23:33:16 +02:00
|
|
|
>x => c.log(x) : (x: { a: number; }) => void
|
2015-04-13 22:54:22 +02:00
|
|
|
>x : { a: number; }, Symbol(x,Decl(file1.ts,4,16))
|
2014-08-15 23:33:16 +02:00
|
|
|
>c.log(x) : void
|
2015-04-13 22:54:22 +02:00
|
|
|
>c.log : (message?: any, ...optionalParams: any[]) => void, Symbol(C.log,Decl(file2.ts,5,13))
|
|
|
|
>c : C, Symbol(c,Decl(file2.ts,1,11))
|
|
|
|
>log : (message?: any, ...optionalParams: any[]) => void, Symbol(C.log,Decl(file2.ts,5,13))
|
|
|
|
>x : { a: number; }, Symbol(x,Decl(file1.ts,4,16))
|
2014-08-15 23:33:16 +02:00
|
|
|
|