TypeScript/tests/baselines/reference/assignmentToFunction.js

27 lines
396 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [assignmentToFunction.ts]
function fn() { }
fn = () => 3;
module foo {
function xyz() {
function bar() {
}
bar = null;
}
}
//// [assignmentToFunction.js]
function fn() {
}
fn = function () {
return 3;
};
2014-07-13 01:04:16 +02:00
var foo;
(function (foo) {
function xyz() {
function bar() {
}
bar = null;
}
})(foo || (foo = {}));