22 lines
458 B
TypeScript
22 lines
458 B
TypeScript
class Point {
|
|
constructor(public x: number, public y: number) { }
|
|
|
|
static Origin: Point = { x: 0, y: 0 };
|
|
}
|
|
|
|
module Point {
|
|
var Origin = ""; // not an error, since not exported
|
|
}
|
|
|
|
|
|
module A {
|
|
export class Point {
|
|
constructor(public x: number, public y: number) { }
|
|
|
|
static Origin: Point = { x: 0, y: 0 };
|
|
}
|
|
|
|
export module Point {
|
|
var Origin = ""; // not an error since not exported
|
|
}
|
|
} |