TypeScript/tests/baselines/reference/declarationEmitExpandoPropertyPrivateName.js
Ron Buckton 711b4e778b
Indirect calls for imported functions (#44624)
* Indirect calls for imported functions

* Fix unit tests
2021-06-21 19:51:13 -07:00

34 lines
599 B
TypeScript

//// [tests/cases/compiler/declarationEmitExpandoPropertyPrivateName.ts] ////
//// [a.ts]
interface I {}
export function f(): I { return null as I; }
//// [b.ts]
import {f} from "./a";
export function q() {}
q.val = f();
//// [a.js]
"use strict";
exports.__esModule = true;
exports.f = void 0;
function f() { return null; }
exports.f = f;
//// [b.js]
"use strict";
exports.__esModule = true;
exports.q = void 0;
var a_1 = require("./a");
function q() { }
exports.q = q;
q.val = (0, a_1.f)();
//// [a.d.ts]
interface I {
}
export declare function f(): I;
export {};