TypeScript/tests/baselines/reference/importAliasIdentifiers.types

124 lines
2.1 KiB
Text
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/conformance/internalModules/importDeclarations/importAliasIdentifiers.ts ===
module moduleA {
2014-08-28 21:40:58 +02:00
>moduleA : typeof moduleA
2014-08-15 23:33:16 +02:00
export class Point {
>Point : Point
constructor(public x: number, public y: number) { }
>x : number
>y : number
}
}
import alias = moduleA;
2014-08-28 21:40:58 +02:00
>alias : typeof moduleA
2014-08-15 23:33:16 +02:00
>moduleA : typeof moduleA
var p: alias.Point;
2014-08-25 19:36:12 +02:00
>p : alias.Point
2014-08-28 21:40:58 +02:00
>alias : unknown
2014-08-25 19:36:12 +02:00
>Point : alias.Point
2014-08-15 23:33:16 +02:00
var p: moduleA.Point;
2014-08-25 19:36:12 +02:00
>p : alias.Point
2014-08-28 21:40:58 +02:00
>moduleA : unknown
2014-08-25 19:36:12 +02:00
>Point : alias.Point
2014-08-15 23:33:16 +02:00
var p: { x: number; y: number; };
2014-08-25 19:36:12 +02:00
>p : alias.Point
2014-08-15 23:33:16 +02:00
>x : number
>y : number
class clodule {
>clodule : clodule
name: string;
>name : string
}
module clodule {
2014-08-28 21:40:58 +02:00
>clodule : typeof clodule
2014-08-15 23:33:16 +02:00
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
>y : number
}
import clolias = clodule;
2014-08-28 21:40:58 +02:00
>clolias : typeof clodule
2014-08-15 23:33:16 +02:00
>clodule : clodule
var p: clolias.Point;
2014-08-25 19:36:12 +02:00
>p : alias.Point
>clolias : unknown
2014-08-25 19:36:12 +02:00
>Point : clolias.Point
2014-08-15 23:33:16 +02:00
var p: clodule.Point;
2014-08-25 19:36:12 +02:00
>p : alias.Point
>clodule : unknown
2014-08-25 19:36:12 +02:00
>Point : clolias.Point
2014-08-15 23:33:16 +02:00
var p: { x: number; y: number; };
2014-08-25 19:36:12 +02:00
>p : alias.Point
2014-08-15 23:33:16 +02:00
>x : number
>y : number
function fundule() {
>fundule : typeof fundule
return { x: 0, y: 0 };
>{ x: 0, y: 0 } : { x: number; y: number; }
>x : number
>y : number
}
module fundule {
2014-08-28 21:40:58 +02:00
>fundule : typeof fundule
2014-08-15 23:33:16 +02:00
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
>y : number
}
import funlias = fundule;
2014-08-28 21:40:58 +02:00
>funlias : typeof fundule
2014-08-15 23:33:16 +02:00
>fundule : typeof fundule
var p: funlias.Point;
2014-08-25 19:36:12 +02:00
>p : alias.Point
2014-08-28 21:40:58 +02:00
>funlias : unknown
2014-08-25 19:36:12 +02:00
>Point : funlias.Point
2014-08-15 23:33:16 +02:00
var p: fundule.Point;
2014-08-25 19:36:12 +02:00
>p : alias.Point
2014-08-28 21:40:58 +02:00
>fundule : unknown
2014-08-25 19:36:12 +02:00
>Point : funlias.Point
2014-08-15 23:33:16 +02:00
var p: { x: number; y: number; };
2014-08-25 19:36:12 +02:00
>p : alias.Point
2014-08-15 23:33:16 +02:00
>x : number
>y : number