2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/aliasUsedAsNameValue_2.ts ===
|
|
|
|
///<reference path='aliasUsedAsNameValue_0.ts' />
|
|
|
|
///<reference path='aliasUsedAsNameValue_1.ts' />
|
|
|
|
import mod = require("aliasUsedAsNameValue_0");
|
2014-08-28 21:40:58 +02:00
|
|
|
>mod : typeof mod
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
import b = require("aliasUsedAsNameValue_1");
|
2014-08-28 21:40:58 +02:00
|
|
|
>b : typeof b
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export var a = function () {
|
|
|
|
>a : () => void
|
2014-08-22 03:39:46 +02:00
|
|
|
>function () { //var x = mod.id; // TODO needed hack that mod is loaded b.b(mod);} : () => void
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
//var x = mod.id; // TODO needed hack that mod is loaded
|
|
|
|
b.b(mod);
|
|
|
|
>b.b(mod) : any
|
2014-08-28 21:52:44 +02:00
|
|
|
>b.b : (a: any) => any
|
2014-08-22 03:39:46 +02:00
|
|
|
>b : typeof b
|
2014-08-28 21:52:44 +02:00
|
|
|
>b : (a: any) => any
|
2014-08-25 19:36:12 +02:00
|
|
|
>mod : typeof mod
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
=== tests/cases/compiler/aliasUsedAsNameValue_0.ts ===
|
|
|
|
export var id: number;
|
|
|
|
>id : number
|
|
|
|
|
|
|
|
=== tests/cases/compiler/aliasUsedAsNameValue_1.ts ===
|
|
|
|
export function b(a: any): any { return null; }
|
2014-08-28 21:52:44 +02:00
|
|
|
>b : (a: any) => any
|
2014-08-15 23:33:16 +02:00
|
|
|
>a : any
|
|
|
|
|