15 lines
No EOL
378 B
Text
15 lines
No EOL
378 B
Text
==== tests/cases/compiler/assignmentToFunction.ts (2 errors) ====
|
|
function fn() { }
|
|
fn = () => 3;
|
|
~~
|
|
!!! Invalid left-hand side of assignment expression.
|
|
|
|
module foo {
|
|
function xyz() {
|
|
function bar() {
|
|
}
|
|
bar = null;
|
|
~~~
|
|
!!! Invalid left-hand side of assignment expression.
|
|
}
|
|
} |