TypeScript/tests/baselines/reference/assignmentToFunction.errors.txt

19 lines
640 B
Plaintext
Raw Normal View History

tests/cases/compiler/assignmentToFunction.ts(2,1): error TS2364: Invalid left-hand side of assignment expression.
tests/cases/compiler/assignmentToFunction.ts(8,9): error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/assignmentToFunction.ts (2 errors) ====
function fn() { }
fn = () => 3;
~~
!!! error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
module foo {
function xyz() {
function bar() {
}
bar = null;
~~~
!!! error TS2364: Invalid left-hand side of assignment expression.
2014-07-13 01:04:16 +02:00
}
}