2017-02-15 02:27:07 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
//// [|class A {
|
|
|
|
//// constructor() {
|
2017-02-16 22:37:35 +01:00
|
|
|
//// let e: any = 10;
|
|
|
|
//// this.x = { a: 10, b: "hello", c: undefined, d: null, e: e };
|
2017-02-15 02:27:07 +01:00
|
|
|
//// }
|
|
|
|
//// }|]
|
|
|
|
|
|
|
|
verify.rangeAfterCodeFix(`
|
|
|
|
class A {
|
2017-02-16 22:37:35 +01:00
|
|
|
x: { a: number; b: string; c: any; d: any; e: any; };
|
2017-02-15 03:10:21 +01:00
|
|
|
|
2017-02-15 02:27:07 +01:00
|
|
|
constructor() {
|
2017-02-16 22:37:35 +01:00
|
|
|
let e: any = 10;
|
|
|
|
this.x = { a: 10, b: "hello", c: undefined, d: null, e: e };
|
2017-02-15 02:27:07 +01:00
|
|
|
}
|
|
|
|
}
|
2017-02-16 22:37:35 +01:00
|
|
|
`, /*includeWhiteSpace*/ false, /*errorCode*/ undefined, /*index*/ 0);
|