Skip to content

Unconstrained type parameter has stricter comparability rules than extends unknown #48680

Description

Fine in 4.7 and 4.6

functionfoo<Textendsunknown>(){letx={};xasT;}

Fine in 4.6, fails in 4.7

functionfoo<T>(){letx={};xasT;}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions