forked from microsoft/TypeScript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
doubleUnderscoreExportStarConflict.js
42 lines (37 loc) · 1.27 KB
/
doubleUnderscoreExportStarConflict.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//// [tests/cases/compiler/doubleUnderscoreExportStarConflict.ts] ////
//// [index.tsx]
export * from "./b";
export * from "./c";
//// [b.ts]
export function __foo(): number | void {}
//// [c.ts]
export function __foo(): string | void {}
//// [b.js]
"use strict";
exports.__esModule = true;
exports.__foo = void 0;
function __foo() { }
exports.__foo = __foo;
//// [c.js]
"use strict";
exports.__esModule = true;
exports.__foo = void 0;
function __foo() { }
exports.__foo = __foo;
//// [index.js]
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var oldDesc = Object.getOwnPropertyDescriptor(m, k);
var desc = ("get" in oldDesc) && !("value" in oldDesc) ? oldDesc : { enumerable: true, get: function() { return m[k]; } };
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
exports.__esModule = true;
__exportStar(require("./b"), exports);
__exportStar(require("./c"), exports);