Skip to content

does not catch never type #78

@dgreene1

Description

@dgreene1

Expected Behavior:

I would expect the following to fail. It does not.

const result: never = () => { throw new Error() };

expectType<string>(result);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions