TypeScript/tests/baselines/reference/functionType.types
2014-10-28 21:21:47 -07:00

20 lines
475 B
Plaintext

=== tests/cases/compiler/functionType.ts ===
function salt() {}
>salt : () => void
salt.apply("hello", []);
>salt.apply("hello", []) : any
>salt.apply : (thisArg: any, argArray?: any) => any
>salt : () => void
>apply : (thisArg: any, argArray?: any) => any
>[] : undefined[]
(new Function("return 5"))();
>(new Function("return 5"))() : any
>(new Function("return 5")) : Function
>new Function("return 5") : Function
>Function : FunctionConstructor