TypeScript/tests/cases/fourslash/codeFixUndeclaredPropertyNumericLiteral.ts

17 lines
300 B
TypeScript
Raw Normal View History

2017-02-13 20:18:56 +01:00
/// <reference path='fourslash.ts' />
//// [|class A {
//// constructor() {
//// this.x = 10;
//// }
//// }|]
verify.rangeAfterCodeFix(`
class A {
x: number;
constructor() {
this.x = 10;
}
}
2017-02-15 03:10:21 +01:00
`, /*includeWhiteSpace*/ false, /*errorCode*/ undefined, /*index*/ 0);