TypeScript/tests/cases/fourslash/codeFixUndeclaredIndexSignatureNumericLiteral.ts
Arthur Ozga 758e1ff8b7 temp
2017-03-15 09:06:59 -07:00

17 lines
310 B
TypeScript

/// <reference path='fourslash.ts' />
//// [|class A {
//// constructor() {
//// this.x = 10;
//// }
//// }|]
verify.rangeAfterCodeFix(`
class A {
[x: string]: number;
constructor() {
this.x = 10;
}
}
`, /*includeWhiteSpace*/ false, /*errorCode*/ undefined, /*index*/ 1);