15 lines
309 B
TypeScript
15 lines
309 B
TypeScript
|
module Test {
|
||
|
class Mocked {
|
||
|
myProp: string;
|
||
|
}
|
||
|
|
||
|
class Tester {
|
||
|
willThrowError() {
|
||
|
Mocked = Mocked || function () { // => Error: Invalid left-hand side of assignment expression.
|
||
|
return { myProp: "test" };
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|