21 lines
650 B
Plaintext
21 lines
650 B
Plaintext
tests/cases/compiler/assignToExistingClass.ts(8,13): error TS2364: Invalid left-hand side of assignment expression.
|
|
|
|
|
|
==== tests/cases/compiler/assignToExistingClass.ts (1 errors) ====
|
|
module Test {
|
|
class Mocked {
|
|
myProp: string;
|
|
}
|
|
|
|
class Tester {
|
|
willThrowError() {
|
|
Mocked = Mocked || function () { // => Error: Invalid left-hand side of assignment expression.
|
|
~~~~~~
|
|
!!! error TS2364: Invalid left-hand side of assignment expression.
|
|
return { myProp: "test" };
|
|
};
|
|
}
|
|
}
|
|
|
|
}
|
|
|