18 lines
515 B
Plaintext
18 lines
515 B
Plaintext
|
==== 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.
|
||
|
~~~~~~
|
||
|
!!! Invalid left-hand side of assignment expression.
|
||
|
return { myProp: "test" };
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|