2017-02-16 22:37:35 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
//// [|class A {
|
|
|
|
//// constructor() {
|
|
|
|
//// this.x = 10;
|
|
|
|
//// }
|
|
|
|
//// }|]
|
|
|
|
|
|
|
|
verify.rangeAfterCodeFix(`
|
|
|
|
class A {
|
2017-03-15 17:06:59 +01:00
|
|
|
[x: string]: number;
|
2017-02-16 22:37:35 +01:00
|
|
|
|
|
|
|
constructor() {
|
|
|
|
this.x = 10;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`, /*includeWhiteSpace*/ false, /*errorCode*/ undefined, /*index*/ 1);
|