mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
578 B
Plaintext
19 lines
578 B
Plaintext
assignmentToFunction.ts(2,1): error TS2630: Cannot assign to 'fn' because it is a function.
|
|
assignmentToFunction.ts(8,9): error TS2630: Cannot assign to 'bar' because it is a function.
|
|
|
|
|
|
==== assignmentToFunction.ts (2 errors) ====
|
|
function fn() { }
|
|
fn = () => 3;
|
|
~~
|
|
!!! error TS2630: Cannot assign to 'fn' because it is a function.
|
|
|
|
namespace foo {
|
|
function xyz() {
|
|
function bar() {
|
|
}
|
|
bar = null;
|
|
~~~
|
|
!!! error TS2630: Cannot assign to 'bar' because it is a function.
|
|
}
|
|
} |