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