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

130 lines
2.1 KiB
Plaintext

=== tests/cases/conformance/internalModules/importDeclarations/importAliasIdentifiers.ts ===
module moduleA {
>moduleA : typeof moduleA
export class Point {
>Point : Point
constructor(public x: number, public y: number) { }
>x : number
>y : number
}
}
import alias = moduleA;
>alias : typeof moduleA
>moduleA : typeof moduleA
var p: alias.Point;
>p : alias.Point
>alias : any
>Point : alias.Point
var p: moduleA.Point;
>p : alias.Point
>moduleA : any
>Point : alias.Point
var p: { x: number; y: number; };
>p : alias.Point
>x : number
>y : number
class clodule {
>clodule : clodule
name: string;
>name : string
}
module clodule {
>clodule : typeof clodule
export interface Point {
>Point : Point
x: number; y: number;
>x : number
>y : number
}
var Point: Point = { x: 0, y: 0 };
>Point : Point
>Point : Point
>{ x: 0, y: 0 } : { x: number; y: number; }
>x : number
>0 : number
>y : number
>0 : number
}
import clolias = clodule;
>clolias : typeof clodule
>clodule : clodule
var p: clolias.Point;
>p : alias.Point
>clolias : any
>Point : clolias.Point
var p: clodule.Point;
>p : alias.Point
>clodule : any
>Point : clolias.Point
var p: { x: number; y: number; };
>p : alias.Point
>x : number
>y : number
function fundule() {
>fundule : typeof fundule
return { x: 0, y: 0 };
>{ x: 0, y: 0 } : { x: number; y: number; }
>x : number
>0 : number
>y : number
>0 : number
}
module fundule {
>fundule : typeof fundule
export interface Point {
>Point : Point
x: number; y: number;
>x : number
>y : number
}
var Point: Point = { x: 0, y: 0 };
>Point : Point
>Point : Point
>{ x: 0, y: 0 } : { x: number; y: number; }
>x : number
>0 : number
>y : number
>0 : number
}
import funlias = fundule;
>funlias : typeof fundule
>fundule : typeof fundule
var p: funlias.Point;
>p : alias.Point
>funlias : any
>Point : funlias.Point
var p: fundule.Point;
>p : alias.Point
>fundule : any
>Point : funlias.Point
var p: { x: number; y: number; };
>p : alias.Point
>x : number
>y : number