Skip to content

Set and Map don't infer own types (regression) #21112

@falsandtru

Description

@falsandtru

#20606 should be reverted for now.

TypeScript Version: master

Code

new Set([]);

Expected behavior:

Set<never>

Actual behavior:

Set<never | ReadonlyArray<never> | undefined>

Related:

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions