Microsoft/TypeScript

Deprecated should support contextual type with signature resolution

Offen

#39.296 geöffnet am 27.06.2020

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (13.395 Forks)batch import
Effort: ModerateExperience EnhancementHelp Wanted

Repository-Metriken

Stars
 (108.860 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

TypeScript Version: 3.7.x-dev.201xxxxx

Search Terms:

Code

// A *self-contained* demonstration of the problem follows...
// Test this by running `tsc` on the command-line, rather than through another build tool such as Gulp, Webpack, etc.

declare function h(v: (a: string) => void)

declare function vv (): void
/** @deprecated */
declare function vv (v: string): void
declare function vv (v?: string): void

h([|vv|])

Expected behavior: vvs is deprecated. Actual behavior: nothing. Playground Link:

Related Issues:

Contributor Guide