2014-07-13 01:04:16 +02:00
|
|
|
//// [tests/cases/compiler/aliasUsedAsNameValue.ts] ////
|
|
|
|
|
|
|
|
//// [aliasUsedAsNameValue_0.ts]
|
|
|
|
export var id: number;
|
|
|
|
|
|
|
|
//// [aliasUsedAsNameValue_1.ts]
|
|
|
|
export function b(a: any): any { return null; }
|
|
|
|
|
|
|
|
//// [aliasUsedAsNameValue_2.ts]
|
|
|
|
///<reference path='aliasUsedAsNameValue_0.ts' />
|
|
|
|
///<reference path='aliasUsedAsNameValue_1.ts' />
|
|
|
|
import mod = require("aliasUsedAsNameValue_0");
|
|
|
|
import b = require("aliasUsedAsNameValue_1");
|
|
|
|
|
|
|
|
export var a = function () {
|
|
|
|
//var x = mod.id; // TODO needed hack that mod is loaded
|
|
|
|
b.b(mod);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//// [aliasUsedAsNameValue_0.js]
|
|
|
|
exports.id;
|
|
|
|
//// [aliasUsedAsNameValue_1.js]
|
2015-02-07 05:03:24 +01:00
|
|
|
function b(a) { return null; }
|
2014-07-13 01:04:16 +02:00
|
|
|
exports.b = b;
|
|
|
|
//// [aliasUsedAsNameValue_2.js]
|
2014-08-14 15:57:59 +02:00
|
|
|
///<reference path='aliasUsedAsNameValue_0.ts' />
|
|
|
|
///<reference path='aliasUsedAsNameValue_1.ts' />
|
2014-07-13 01:04:16 +02:00
|
|
|
var mod = require("aliasUsedAsNameValue_0");
|
|
|
|
var b = require("aliasUsedAsNameValue_1");
|
|
|
|
exports.a = function () {
|
2014-08-16 00:49:09 +02:00
|
|
|
//var x = mod.id; // TODO needed hack that mod is loaded
|
2014-07-13 01:04:16 +02:00
|
|
|
b.b(mod);
|
|
|
|
};
|