TypeScript/tests/baselines/reference/innerFunc.js
2014-07-12 17:30:19 -07:00

33 lines
541 B
JavaScript

//// [innerFunc.ts]
function salt() {
function pepper() { return 5;}
return pepper();
}
module M {
export function tungsten() {
function oxygen() { return 6; };
return oxygen();
}
}
//// [innerFunc.js]
function salt() {
function pepper() {
return 5;
}
return pepper();
}
var M;
(function (M) {
function tungsten() {
function oxygen() {
return 6;
}
;
return oxygen();
}
M.tungsten = tungsten;
})(M || (M = {}));