TypeScript/tests/baselines/reference/aliasUsedAsNameValue.types

33 lines
873 B
Plaintext
Raw Normal View History

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");
>mod : typeof mod
2014-08-15 23:33:16 +02:00
import b = require("aliasUsedAsNameValue_1");
>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
>b.b : (a: any) => any
>b : typeof b
>b : (a: any) => any
>mod : typeof mod
2014-08-15 23:33:16 +02:00
}
=== tests/cases/compiler/aliasUsedAsNameValue_0.ts ===
export var id: number;
>id : number
2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/aliasUsedAsNameValue_1.ts ===
export function b(a: any): any { return null; }
>b : (a: any) => any
>a : any
2015-04-13 21:36:11 +02:00
>null : null
2014-08-15 23:33:16 +02:00