mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
28 lines
572 B
TypeScript
28 lines
572 B
TypeScript
//// [tests/cases/conformance/internalModules/DeclarationMerging/AmbientModuleAndNonAmbientFunctionWithTheSameNameAndCommonRoot.ts] ////
|
|
|
|
//// [module.d.ts]
|
|
declare namespace Point {
|
|
export var Origin: { x: number; y: number; }
|
|
}
|
|
|
|
//// [function.ts]
|
|
function Point() {
|
|
return { x: 0, y: 0 };
|
|
}
|
|
|
|
//// [test.ts]
|
|
var cl: { x: number; y: number; }
|
|
var cl = Point();
|
|
var cl = Point.Origin;
|
|
|
|
//// [function.js]
|
|
"use strict";
|
|
function Point() {
|
|
return { x: 0, y: 0 };
|
|
}
|
|
//// [test.js]
|
|
"use strict";
|
|
var cl;
|
|
var cl = Point();
|
|
var cl = Point.Origin;
|