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

11 lines
271 B
TypeScript

// @declaration: true
function f1(...args) { }
function f2(x: (...args) => void) { }
function f3(x: { (...args): void }) { }
function f4<T extends (...args) => void>() { }
function f5<T extends { (...args): void }>() { }
var f6 = () => { return [<any>10]; }