mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
27 lines
449 B
TypeScript
27 lines
449 B
TypeScript
//// [tests/cases/compiler/assignmentToFunction.ts] ////
|
|
|
|
//// [assignmentToFunction.ts]
|
|
function fn() { }
|
|
fn = () => 3;
|
|
|
|
namespace foo {
|
|
function xyz() {
|
|
function bar() {
|
|
}
|
|
bar = null;
|
|
}
|
|
}
|
|
|
|
//// [assignmentToFunction.js]
|
|
"use strict";
|
|
function fn() { }
|
|
fn = () => 3;
|
|
var foo;
|
|
(function (foo) {
|
|
function xyz() {
|
|
function bar() {
|
|
}
|
|
bar = null;
|
|
}
|
|
})(foo || (foo = {}));
|