TypeScript/tests/cases/fourslash/codeFixInferFromUsageVariable2JS.ts
Nathan Shively-Sanders ce85ee5115
Move infer-from-usage earlier in codefix list (#28318)
This makes it appear before the ts-ignore codefix, specifically.
2018-11-02 15:39:27 -07:00

19 lines
361 B
TypeScript

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