swc/crates/swc_ecma_parser/tests/tsc/AmbientModuleAndAmbientFunctionWithTheSameNameAndCommonRoot.ts

12 lines
278 B
TypeScript

// @filename: module.d.ts
declare module Point {
export var Origin: { x: number; y: number; }
}
// @filename: function.d.ts
declare function Point(): { x: number; y: number; }
// @filename: test.ts
var cl: { x: number; y: number; }
var cl = Point();
var cl = Point.Origin;