19 lines
462 B
TypeScript
19 lines
462 B
TypeScript
|
/// <reference path="fourslash.ts" />
|
||
|
|
||
|
////module Test {
|
||
|
//// class Mocked {
|
||
|
//// myProp: string;
|
||
|
//// }
|
||
|
//// class Tester {
|
||
|
//// willThrowError() {
|
||
|
//// Mocked = Mocked || function () { // => Error: Invalid left-hand side of assignment expression.
|
||
|
//// return { /**/myProp: "test" };
|
||
|
//// };
|
||
|
//// }
|
||
|
//// }
|
||
|
////}
|
||
|
|
||
|
goTo.marker();
|
||
|
// Verify no crash
|
||
|
verify.quickInfoExists();
|