mirror of
https://github.com/swc-project/swc.git
synced 2024-12-28 08:04:43 +03:00
15 lines
231 B
TypeScript
15 lines
231 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
|
||
|
|
||
|
|
||
|
|