TypeScript/tests/baselines/reference/exportAssignmentFunction.types

18 lines
397 B
Plaintext
Raw Normal View History

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