TypeScript/tests/baselines/reference/assignmentToFunction.errors.txt
2014-09-11 16:11:08 -07:00

15 lines
406 B
Plaintext

==== tests/cases/compiler/assignmentToFunction.ts (2 errors) ====
function fn() { }
fn = () => 3;
~~
!!! error TS2364: Invalid left-hand side of assignment expression.
module foo {
function xyz() {
function bar() {
}
bar = null;
~~~
!!! error TS2364: Invalid left-hand side of assignment expression.
}
}