TypeScript/tests/baselines/reference/functionType.types

22 lines
516 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/functionType.ts ===
function salt() {}
>salt : () => void
2014-08-15 23:33:16 +02:00
salt.apply("hello", []);
>salt.apply("hello", []) : any
>salt.apply : (thisArg: any, argArray?: any) => any
>salt : () => void
>apply : (thisArg: any, argArray?: any) => any
2015-04-13 21:36:11 +02:00
>"hello" : string
2014-08-15 23:33:16 +02:00
>[] : undefined[]
(new Function("return 5"))();
>(new Function("return 5"))() : any
>(new Function("return 5")) : Function
>new Function("return 5") : Function
>Function : FunctionConstructor
2015-04-13 21:36:11 +02:00
>"return 5" : string
2014-08-15 23:33:16 +02:00