mirror of
https://github.com/swc-project/swc.git
synced 2024-12-01 01:13:56 +03:00
16 lines
252 B
TypeScript
16 lines
252 B
TypeScript
|
enum enumdule {
|
||
|
Red, Blue
|
||
|
}
|
||
|
|
||
|
module enumdule {
|
||
|
|
||
|
export class Point {
|
||
|
constructor(public x: number, public y: number) { }
|
||
|
}
|
||
|
}
|
||
|
|
||
|
var x: enumdule;
|
||
|
var x = enumdule.Red;
|
||
|
|
||
|
var y: { x: number; y: number };
|
||
|
var y = new enumdule.Point(0, 0);
|