15 lines
245 B
TypeScript
15 lines
245 B
TypeScript
module M {
|
|
export class Point { x: number; y: number }
|
|
export var Point = 1; // Error
|
|
}
|
|
|
|
module M2 {
|
|
export interface Point { x: number; y: number }
|
|
export var Point = 1;
|
|
}
|
|
|
|
var m = M2;
|
|
var p: m.Point; // Error
|
|
|
|
|
|
|