File tree Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -6,15 +6,19 @@ export module m {
6
6
}
7
7
8
8
//// [chainedImportAlias_file1.ts]
9
- import x = require ( 'chainedImportAlias_file1 ' ) ;
9
+ import x = require ( 'chainedImportAlias_file0 ' ) ;
10
10
import y = x ;
11
- declare var console : {
12
- log ( message ? : any ) ;
13
- } ;
14
- console . log ( y ) ;
11
+ y . m . foo ( ) ;
15
12
16
13
14
+ //// [chainedImportAlias_file0.js]
15
+ ( function ( m ) {
16
+ function foo ( ) {
17
+ }
18
+ m . foo = foo ;
19
+ } ) ( exports . m || ( exports . m = { } ) ) ;
20
+ var m = exports . m ;
17
21
//// [chainedImportAlias_file1.js]
18
- var x = require ( 'chainedImportAlias_file1 ' ) ;
22
+ var x = require ( 'chainedImportAlias_file0 ' ) ;
19
23
var y = x ;
20
- console . log ( y ) ;
24
+ y . m . foo ( ) ;
Original file line number Diff line number Diff line change @@ -5,9 +5,6 @@ export module m {
5
5
}
6
6
7
7
// @Filename : chainedImportAlias_file1.ts
8
- import x = require( 'chainedImportAlias_file1 ' ) ;
8
+ import x = require( 'chainedImportAlias_file0 ' ) ;
9
9
import y = x ;
10
- declare var console : {
11
- log ( message ?: any ) ;
12
- } ;
13
- console . log ( y ) ;
10
+ y . m . foo ( ) ;
You can’t perform that action at this time.
0 commit comments