2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/contextualTypeAppliedToVarArgs.ts ===
|
|
|
|
function delegate(instance: any, method: (...args: any[]) => any, data?: any): (...args: any[]) => any {
|
2015-04-13 22:54:22 +02:00
|
|
|
>delegate : (instance: any, method: (...args: any[]) => any, data?: any) => (...args: any[]) => any, Symbol(delegate,Decl(contextualTypeAppliedToVarArgs.ts,0,0))
|
|
|
|
>instance : any, Symbol(instance,Decl(contextualTypeAppliedToVarArgs.ts,0,18))
|
|
|
|
>method : (...args: any[]) => any, Symbol(method,Decl(contextualTypeAppliedToVarArgs.ts,0,32))
|
|
|
|
>args : any[], Symbol(args,Decl(contextualTypeAppliedToVarArgs.ts,0,42))
|
|
|
|
>data : any, Symbol(data,Decl(contextualTypeAppliedToVarArgs.ts,0,65))
|
|
|
|
>args : any[], Symbol(args,Decl(contextualTypeAppliedToVarArgs.ts,0,80))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
return function () { };
|
|
|
|
>function () { } : () => void
|
|
|
|
}
|
|
|
|
|
|
|
|
class Foo{
|
2015-04-13 22:54:22 +02:00
|
|
|
>Foo : Foo, Symbol(Foo,Decl(contextualTypeAppliedToVarArgs.ts,2,1))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
Bar() {
|
2015-04-13 22:54:22 +02:00
|
|
|
>Bar : () => void, Symbol(Bar,Decl(contextualTypeAppliedToVarArgs.ts,4,10))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
delegate(this, function (source, args2)
|
2014-08-22 03:39:46 +02:00
|
|
|
>delegate(this, function (source, args2) { var a = source.node; var b = args2.node; } ) : (...args: any[]) => any
|
2015-04-13 22:54:22 +02:00
|
|
|
>delegate : (instance: any, method: (...args: any[]) => any, data?: any) => (...args: any[]) => any, Symbol(delegate,Decl(contextualTypeAppliedToVarArgs.ts,0,0))
|
|
|
|
>this : Foo, Symbol(Foo,Decl(contextualTypeAppliedToVarArgs.ts,2,1))
|
2014-08-22 03:39:46 +02:00
|
|
|
>function (source, args2) { var a = source.node; var b = args2.node; } : (source: any, args2: any) => void
|
2015-04-13 22:54:22 +02:00
|
|
|
>source : any, Symbol(source,Decl(contextualTypeAppliedToVarArgs.ts,8,33))
|
|
|
|
>args2 : any, Symbol(args2,Decl(contextualTypeAppliedToVarArgs.ts,8,40))
|
2014-08-15 23:33:16 +02:00
|
|
|
{
|
|
|
|
var a = source.node;
|
2015-04-13 22:54:22 +02:00
|
|
|
>a : any, Symbol(a,Decl(contextualTypeAppliedToVarArgs.ts,10,15))
|
2014-08-15 23:33:16 +02:00
|
|
|
>source.node : any
|
2015-04-13 22:54:22 +02:00
|
|
|
>source : any, Symbol(source,Decl(contextualTypeAppliedToVarArgs.ts,8,33))
|
2014-08-15 23:33:16 +02:00
|
|
|
>node : any
|
|
|
|
|
|
|
|
var b = args2.node;
|
2015-04-13 22:54:22 +02:00
|
|
|
>b : any, Symbol(b,Decl(contextualTypeAppliedToVarArgs.ts,11,15))
|
2014-08-15 23:33:16 +02:00
|
|
|
>args2.node : any
|
2015-04-13 22:54:22 +02:00
|
|
|
>args2 : any, Symbol(args2,Decl(contextualTypeAppliedToVarArgs.ts,8,40))
|
2014-08-15 23:33:16 +02:00
|
|
|
>node : any
|
|
|
|
|
|
|
|
} );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|