15 lines
585 B
Text
15 lines
585 B
Text
=== tests/cases/compiler/exportAssignmentFunction_B.ts ===
|
|
import fooFunc = require("exportAssignmentFunction_A");
|
|
>fooFunc : Symbol(fooFunc, Decl(exportAssignmentFunction_B.ts, 0, 0))
|
|
|
|
var n: number = fooFunc();
|
|
>n : Symbol(n, Decl(exportAssignmentFunction_B.ts, 2, 3))
|
|
>fooFunc : Symbol(fooFunc, Decl(exportAssignmentFunction_B.ts, 0, 0))
|
|
|
|
=== tests/cases/compiler/exportAssignmentFunction_A.ts ===
|
|
function foo() { return 0; }
|
|
>foo : Symbol(foo, Decl(exportAssignmentFunction_A.ts, 0, 0))
|
|
|
|
export = foo;
|
|
>foo : Symbol(foo, Decl(exportAssignmentFunction_A.ts, 0, 0))
|
|
|