mirror of
https://github.com/swc-project/swc.git
synced 2024-12-01 01:13:56 +03:00
24 lines
468 B
TypeScript
24 lines
468 B
TypeScript
// @filename: module.d.ts
|
|
declare module A {
|
|
export module Point {
|
|
export var Origin: {
|
|
x: number;
|
|
y: number;
|
|
}
|
|
}
|
|
}
|
|
|
|
// @filename: class.d.ts
|
|
declare module A {
|
|
export class Point {
|
|
constructor(x: number, y: number);
|
|
x: number;
|
|
y: number;
|
|
}
|
|
}
|
|
|
|
// @filename: test.ts
|
|
var p: { x: number; y: number; }
|
|
var p = A.Point.Origin;
|
|
var p = new A.Point(0, 0); // unexpected error here, bug 840000
|
|
|