21 lines
No EOL
650 B
Text
21 lines
No EOL
650 B
Text
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" };
|
|
};
|
|
}
|
|
}
|
|
|
|
}
|
|
|