TypeScript/tests/baselines/reference/functionType.types
2016-04-28 08:48:08 -07:00

22 lines
548 B
Plaintext

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