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

14 lines
272 B
TypeScript
Raw Normal View History

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