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

15 lines
378 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== 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.
}
}