TypeScript/tests/cases/fourslash/codeFixCorrectSpelling2.ts
Nathan Shively-Sanders abec46ce48 Test:spelling suggestions for more types
Test spelling suggestions for primitives, unions/intersections and type
parameters with constraints.
2017-06-30 10:12:02 -07:00

10 lines
301 B
TypeScript

/// <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);