TypeScript/tests/baselines/reference/functionType.types

22 lines
750 B
Text
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/functionType.ts ===
function salt() {}
>salt : () => void, Symbol(salt,Decl(functionType.ts,0,0))
2014-08-15 23:33:16 +02:00
salt.apply("hello", []);
>salt.apply("hello", []) : any
>salt.apply : (thisArg: any, argArray?: any) => any, Symbol(Function.apply,Decl(lib.d.ts,228,20))
>salt : () => void, Symbol(salt,Decl(functionType.ts,0,0))
>apply : (thisArg: any, argArray?: any) => any, Symbol(Function.apply,Decl(lib.d.ts,228,20))
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, Symbol(Function,Decl(lib.d.ts,223,38),Decl(lib.d.ts,269,11))
2015-04-13 21:36:11 +02:00
>"return 5" : string
2014-08-15 23:33:16 +02:00