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

15 lines
406 B
Text
Raw Normal View History

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
}
}