TypeScript/tests/cases/fourslash/codeFixInferFromUsageVariable2.ts

14 lines
262 B
TypeScript
Raw Normal View History

/// <reference path='fourslash.ts' />
// @noImplicitAny: true
////[|var x;
////function f() {
//// x++;
////}|]
verify.rangeAfterCodeFix(`var x: number;
function f() {
x++;
}
`, /*includeWhiteSpace*/ undefined, /*errorCode*/ undefined, 1);