2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/declFileRestParametersOfFunctionAndFunctionType.ts ===
|
|
|
|
|
|
|
|
function f1(...args) { }
|
2015-04-13 23:01:57 +02:00
|
|
|
>f1 : (...args: any[]) => void, Symbol(f1, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 0, 0))
|
|
|
|
>args : any[], Symbol(args, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 1, 12))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
function f2(x: (...args) => void) { }
|
2015-04-13 23:01:57 +02:00
|
|
|
>f2 : (x: (...args: any[]) => void) => void, Symbol(f2, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 1, 24))
|
|
|
|
>x : (...args: any[]) => void, Symbol(x, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 2, 12))
|
|
|
|
>args : any[], Symbol(args, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 2, 16))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
function f3(x: { (...args): void }) { }
|
2015-04-13 23:01:57 +02:00
|
|
|
>f3 : (x: (...args: any[]) => void) => void, Symbol(f3, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 2, 37))
|
|
|
|
>x : (...args: any[]) => void, Symbol(x, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 3, 12))
|
|
|
|
>args : any[], Symbol(args, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 3, 18))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
function f4<T extends (...args) => void>() { }
|
2015-04-13 23:01:57 +02:00
|
|
|
>f4 : <T extends (...args: any[]) => void>() => void, Symbol(f4, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 3, 39))
|
|
|
|
>T : T, Symbol(T, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 4, 12))
|
|
|
|
>args : any[], Symbol(args, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 4, 23))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
function f5<T extends { (...args): void }>() { }
|
2015-04-13 23:01:57 +02:00
|
|
|
>f5 : <T extends (...args: any[]) => void>() => void, Symbol(f5, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 4, 46))
|
|
|
|
>T : T, Symbol(T, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 5, 12))
|
|
|
|
>args : any[], Symbol(args, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 5, 25))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var f6 = () => { return [<any>10]; }
|
2015-04-13 23:01:57 +02:00
|
|
|
>f6 : () => any[], Symbol(f6, Decl(declFileRestParametersOfFunctionAndFunctionType.ts, 6, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>() => { return [<any>10]; } : () => any[]
|
|
|
|
>[<any>10] : any[]
|
|
|
|
><any>10 : any
|
2015-04-13 21:36:11 +02:00
|
|
|
>10 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
|