TypeScript/tests/cases/fourslash/codeFixInferFromUsageBindingElement.ts
Nathan Shively-Sanders 24b39f90c9
Skip implicit any suggestions with no codefix (#28822)
The only unsupported one is binding patterns, which aren't supported by the codefix.
The code was a lot faster to write without supporting them, but there's
no real barrier besides that.
2018-12-04 09:17:37 -08:00

9 lines
219 B
TypeScript

/// <reference path='fourslash.ts' />
////function f([car, cdr]) {
//// return car + cdr + 1
////}
// When inferFromUsage supports it, it should infer number for both variables
verify.getSuggestionDiagnostics([]);