TypeScript/tests/cases/fourslash/codeFixSpelling2.ts

10 lines
301 B
TypeScript
Raw Normal View History

/// <reference path='fourslash.ts' />
////[|function foo<T extends number | string>(x: T) {
//// return x.toStrang();
////}|]
verify.rangeAfterCodeFix(`function foo<T extends number | string>(x: T) {
return x.toString();
}`, /*includeWhiteSpace*/false, /*errorCode*/ undefined, /*index*/ 0);