TypeScript/tests/cases/compiler/contextualTypeAppliedToVarArgs.ts
2014-07-12 17:30:19 -07:00

16 lines
305 B
TypeScript

function delegate(instance: any, method: (...args: any[]) => any, data?: any): (...args: any[]) => any {
return function () { };
}
class Foo{
Bar() {
delegate(this, function (source, args2)
{
var a = source.node;
var b = args2.node;
} );
}
}