2014-07-13 01:04:16 +02:00
|
|
|
//// [tests/cases/compiler/chainedImportAlias.ts] ////
|
|
|
|
|
|
|
|
//// [chainedImportAlias_file0.ts]
|
|
|
|
export module m {
|
|
|
|
export function foo() { }
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [chainedImportAlias_file1.ts]
|
2014-08-15 03:46:35 +02:00
|
|
|
import x = require('chainedImportAlias_file0');
|
2014-07-13 01:04:16 +02:00
|
|
|
import y = x;
|
2014-08-15 03:46:35 +02:00
|
|
|
y.m.foo();
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
|
2014-08-15 03:46:35 +02:00
|
|
|
//// [chainedImportAlias_file0.js]
|
2014-09-07 02:40:19 +02:00
|
|
|
var m;
|
2014-08-15 03:46:35 +02:00
|
|
|
(function (m) {
|
|
|
|
function foo() {
|
|
|
|
}
|
|
|
|
m.foo = foo;
|
2014-09-07 02:40:19 +02:00
|
|
|
})(m = exports.m || (exports.m = {}));
|
2014-07-13 01:04:16 +02:00
|
|
|
//// [chainedImportAlias_file1.js]
|
2014-08-15 03:46:35 +02:00
|
|
|
var x = require('chainedImportAlias_file0');
|
2014-07-13 01:04:16 +02:00
|
|
|
var y = x;
|
2014-08-15 03:46:35 +02:00
|
|
|
y.m.foo();
|