Skip to content

set.values().next() has wrong type #43750

Description

@sdegutis

Bug Report

🔎 Search Terms

🕗 Version & Regression Information

Happens in both versions 4.2.3 and 4.3.0-beta

⏯ Playground Link

Playground link with relevant code

💻 Code

consts=newSet<string>();s.values().next().value;

🙁 Actual behavior

Type of value is any.

🙂 Expected behavior

Type of value should probably be string | undefined or something.

Metadata

Metadata

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