35 lines
1 KiB
Text
35 lines
1 KiB
Text
|
=== tests/cases/compiler/aliasUsedAsNameValue_2.ts ===
|
||
|
///<reference path='aliasUsedAsNameValue_0.ts' />
|
||
|
///<reference path='aliasUsedAsNameValue_1.ts' />
|
||
|
import mod = require("aliasUsedAsNameValue_0");
|
||
|
>mod : typeof "tests/cases/compiler/aliasUsedAsNameValue_0"
|
||
|
|
||
|
import b = require("aliasUsedAsNameValue_1");
|
||
|
>b : typeof "tests/cases/compiler/aliasUsedAsNameValue_1"
|
||
|
|
||
|
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 "tests/cases/compiler/aliasUsedAsNameValue_1"
|
||
|
>b : (a: any) => any
|
||
|
>mod : typeof "tests/cases/compiler/aliasUsedAsNameValue_0"
|
||
|
}
|
||
|
|
||
|
=== 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
|
||
|
|