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

25 lines
390 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 = {}));