TypeScript/tests/baselines/reference/aliasUsedAsNameValue.types
2015-04-15 16:44:20 -07:00

33 lines
873 B
Plaintext

=== tests/cases/compiler/aliasUsedAsNameValue_2.ts ===
///<reference path='aliasUsedAsNameValue_0.ts' />
///<reference path='aliasUsedAsNameValue_1.ts' />
import mod = require("aliasUsedAsNameValue_0");
>mod : typeof mod
import b = require("aliasUsedAsNameValue_1");
>b : typeof b
export var a = function () {
>a : () => void
>function () { //var x = mod.id; // TODO needed hack that mod is loaded b.b(mod);} : () => void
//var x = mod.id; // TODO needed hack that mod is loaded
b.b(mod);
>b.b(mod) : any
>b.b : (a: any) => any
>b : typeof b
>b : (a: any) => any
>mod : typeof mod
}
=== 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; }
>b : (a: any) => any
>a : any
>null : null