28 lines
1.5 KiB
Text
28 lines
1.5 KiB
Text
=== tests/cases/compiler/exportImportMultipleFiles_userCode.ts ===
|
|
import lib = require('./exportImportMultipleFiles_library');
|
|
>lib : Symbol(lib, Decl(exportImportMultipleFiles_userCode.ts, 0, 0))
|
|
|
|
lib.math.add(3, 4); // Shouldnt be error
|
|
>lib.math.add : Symbol(lib.math.add, Decl(exportImportMultipleFiles_math.ts, 0, 0))
|
|
>lib.math : Symbol(lib.math, Decl(exportImportMultipleFiles_library.ts, 0, 0))
|
|
>lib : Symbol(lib, Decl(exportImportMultipleFiles_userCode.ts, 0, 0))
|
|
>math : Symbol(lib.math, Decl(exportImportMultipleFiles_library.ts, 0, 0))
|
|
>add : Symbol(lib.math.add, Decl(exportImportMultipleFiles_math.ts, 0, 0))
|
|
|
|
=== tests/cases/compiler/exportImportMultipleFiles_math.ts ===
|
|
export function add(a, b) { return a + b; }
|
|
>add : Symbol(add, Decl(exportImportMultipleFiles_math.ts, 0, 0))
|
|
>a : Symbol(a, Decl(exportImportMultipleFiles_math.ts, 0, 20))
|
|
>b : Symbol(b, Decl(exportImportMultipleFiles_math.ts, 0, 22))
|
|
>a : Symbol(a, Decl(exportImportMultipleFiles_math.ts, 0, 20))
|
|
>b : Symbol(b, Decl(exportImportMultipleFiles_math.ts, 0, 22))
|
|
|
|
=== tests/cases/compiler/exportImportMultipleFiles_library.ts ===
|
|
export import math = require("exportImportMultipleFiles_math");
|
|
>math : Symbol(math, Decl(exportImportMultipleFiles_library.ts, 0, 0))
|
|
|
|
math.add(3, 4); // OK
|
|
>math.add : Symbol(math.add, Decl(exportImportMultipleFiles_math.ts, 0, 0))
|
|
>math : Symbol(math, Decl(exportImportMultipleFiles_library.ts, 0, 0))
|
|
>add : Symbol(math.add, Decl(exportImportMultipleFiles_math.ts, 0, 0))
|
|
|