TypeScript/tests/baselines/reference/importAliasIdentifiers.types

130 lines
2.1 KiB
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/conformance/internalModules/importDeclarations/importAliasIdentifiers.ts ===
module moduleA {
>moduleA : typeof moduleA
2014-08-15 23:33:16 +02:00
export class Point {
>Point : Point
2014-08-15 23:33:16 +02:00
constructor(public x: number, public y: number) { }
>x : number
>y : number
2014-08-15 23:33:16 +02:00
}
}
import alias = moduleA;
>alias : typeof moduleA
>moduleA : typeof moduleA
2014-08-15 23:33:16 +02:00
var p: alias.Point;
>p : alias.Point
>alias : any
>Point : alias.Point
2014-08-15 23:33:16 +02:00
var p: moduleA.Point;
>p : alias.Point
>moduleA : any
>Point : alias.Point
2014-08-15 23:33:16 +02:00
var p: { x: number; y: number; };
>p : alias.Point
>x : number
>y : number
2014-08-15 23:33:16 +02:00
class clodule {
>clodule : clodule
2014-08-15 23:33:16 +02:00
name: string;
>name : string
2014-08-15 23:33:16 +02:00
}
module clodule {
>clodule : typeof clodule
2014-08-15 23:33:16 +02:00
export interface Point {
>Point : Point
2014-08-15 23:33:16 +02:00
x: number; y: number;
>x : number
>y : number
2014-08-15 23:33:16 +02:00
}
var Point: Point = { x: 0, y: 0 };
>Point : Point
>Point : Point
2014-08-15 23:33:16 +02:00
>{ x: 0, y: 0 } : { x: number; y: number; }
>x : number
2015-04-13 21:36:11 +02:00
>0 : number
>y : number
2015-04-13 21:36:11 +02:00
>0 : number
2014-08-15 23:33:16 +02:00
}
import clolias = clodule;
>clolias : typeof clodule
>clodule : clodule
2014-08-15 23:33:16 +02:00
var p: clolias.Point;
>p : alias.Point
>clolias : any
>Point : clolias.Point
2014-08-15 23:33:16 +02:00
var p: clodule.Point;
>p : alias.Point
>clodule : any
>Point : clolias.Point
2014-08-15 23:33:16 +02:00
var p: { x: number; y: number; };
>p : alias.Point
>x : number
>y : number
2014-08-15 23:33:16 +02:00
function fundule() {
>fundule : typeof fundule
2014-08-15 23:33:16 +02:00
return { x: 0, y: 0 };
>{ x: 0, y: 0 } : { x: number; y: number; }
>x : number
2015-04-13 21:36:11 +02:00
>0 : number
>y : number
2015-04-13 21:36:11 +02:00
>0 : number
2014-08-15 23:33:16 +02:00
}
module fundule {
>fundule : typeof fundule
2014-08-15 23:33:16 +02:00
export interface Point {
>Point : Point
2014-08-15 23:33:16 +02:00
x: number; y: number;
>x : number
>y : number
2014-08-15 23:33:16 +02:00
}
var Point: Point = { x: 0, y: 0 };
>Point : Point
>Point : Point
2014-08-15 23:33:16 +02:00
>{ x: 0, y: 0 } : { x: number; y: number; }
>x : number
2015-04-13 21:36:11 +02:00
>0 : number
>y : number
2015-04-13 21:36:11 +02:00
>0 : number
2014-08-15 23:33:16 +02:00
}
import funlias = fundule;
>funlias : typeof fundule
>fundule : typeof fundule
2014-08-15 23:33:16 +02:00
var p: funlias.Point;
>p : alias.Point
>funlias : any
>Point : funlias.Point
2014-08-15 23:33:16 +02:00
var p: fundule.Point;
>p : alias.Point
>fundule : any
>Point : funlias.Point
2014-08-15 23:33:16 +02:00
var p: { x: number; y: number; };
>p : alias.Point
>x : number
>y : number
2014-08-15 23:33:16 +02:00