TypeScript/tests/baselines/reference/assignmentToFunction.js
2015-02-06 18:45:09 -08:00

24 lines
389 B
JavaScript

//// [assignmentToFunction.ts]
function fn() { }
fn = () => 3;
module foo {
function xyz() {
function bar() {
}
bar = null;
}
}
//// [assignmentToFunction.js]
function fn() { }
fn = function () { return 3; };
var foo;
(function (foo) {
function xyz() {
function bar() {
}
bar = null;
}
})(foo || (foo = {}));