TypeScript/tests/cases/fourslash/codeFixInferFromUsageCallBodyBoth.ts
Nathan Shively-Sanders 37150d9cb5 Turn on findBuiltinTypes
Type parameter inference is special-cased, just moved from its previous
place with no improvement.
2019-08-29 12:40:33 -07:00

17 lines
323 B
TypeScript

/// <reference path='fourslash.ts' />
////class C {
//// p = 2
////}
////var c = new C()
////function f([|x, y |]) {
//// if (y) {
//// x = 1
//// }
//// return x
////}
////f(new C())
verify.rangeAfterCodeFix("x: number | C, y: undefined",/*includeWhiteSpace*/ undefined, /*errorCode*/ undefined, 0);