2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/exportAssignmentWithImportStatementPrivacyError.ts ===
|
|
|
|
module m2 {
|
2014-08-28 21:40:58 +02:00
|
|
|
>m2 : unknown
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export interface connectModule {
|
|
|
|
>connectModule : connectModule
|
|
|
|
|
|
|
|
(res, req, next): void;
|
|
|
|
>res : any
|
|
|
|
>req : any
|
|
|
|
>next : any
|
|
|
|
}
|
|
|
|
export interface connectExport {
|
|
|
|
>connectExport : connectExport
|
|
|
|
|
|
|
|
use: (mod: connectModule) => connectExport;
|
|
|
|
>use : (mod: connectModule) => connectExport
|
|
|
|
>mod : connectModule
|
|
|
|
>connectModule : connectModule
|
|
|
|
>connectExport : connectExport
|
|
|
|
|
|
|
|
listen: (port: number) => void;
|
|
|
|
>listen : (port: number) => void
|
|
|
|
>port : number
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
module M {
|
2014-08-28 21:40:58 +02:00
|
|
|
>M : typeof M
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export var server: {
|
2014-08-25 19:36:12 +02:00
|
|
|
>server : { (): m2.connectExport; test1: m2.connectModule; test2(): m2.connectModule; }
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
(): m2.connectExport;
|
2014-08-28 21:40:58 +02:00
|
|
|
>m2 : unknown
|
2014-08-25 19:36:12 +02:00
|
|
|
>connectExport : m2.connectExport
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
test1: m2.connectModule;
|
2014-08-25 19:36:12 +02:00
|
|
|
>test1 : m2.connectModule
|
2014-08-28 21:40:58 +02:00
|
|
|
>m2 : unknown
|
2014-08-25 19:36:12 +02:00
|
|
|
>connectModule : m2.connectModule
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
test2(): m2.connectModule;
|
2014-08-25 19:36:12 +02:00
|
|
|
>test2 : () => m2.connectModule
|
2014-08-28 21:40:58 +02:00
|
|
|
>m2 : unknown
|
2014-08-25 19:36:12 +02:00
|
|
|
>connectModule : m2.connectModule
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
import M22 = M;
|
2014-08-28 21:40:58 +02:00
|
|
|
>M22 : typeof M
|
2014-08-15 23:33:16 +02:00
|
|
|
>M : typeof M
|
|
|
|
|
|
|
|
export = M;
|
|
|
|
>M : typeof M
|
|
|
|
|