TypeScript/tests/baselines/reference/exportAssignmentFunction.types

18 lines
683 B
Text
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/exportAssignmentFunction_B.ts ===
import fooFunc = require("exportAssignmentFunction_A");
2015-04-13 23:01:57 +02:00
>fooFunc : () => number, Symbol(fooFunc, Decl(exportAssignmentFunction_B.ts, 0, 0))
2014-08-15 23:33:16 +02:00
var n: number = fooFunc();
2015-04-13 23:01:57 +02:00
>n : number, Symbol(n, Decl(exportAssignmentFunction_B.ts, 2, 3))
2014-08-15 23:33:16 +02:00
>fooFunc() : number
2015-04-13 23:01:57 +02:00
>fooFunc : () => number, Symbol(fooFunc, Decl(exportAssignmentFunction_B.ts, 0, 0))
2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/exportAssignmentFunction_A.ts ===
function foo() { return 0; }
2015-04-13 23:01:57 +02:00
>foo : () => number, Symbol(foo, Decl(exportAssignmentFunction_A.ts, 0, 0))
2015-04-13 21:36:11 +02:00
>0 : number
2014-08-15 23:33:16 +02:00
export = foo;
2015-04-13 23:01:57 +02:00
>foo : () => number, Symbol(foo, Decl(exportAssignmentFunction_A.ts, 0, 0))
2014-08-15 23:33:16 +02:00