Skip to content

Defer mapped type indexed access transformations#18042

Merged
ahejlsberg merged 4 commits into
masterfrom
fixMappedTypeIndexedAccess
Aug 25, 2017
Merged

Defer mapped type indexed access transformations#18042
ahejlsberg merged 4 commits into
masterfrom
fixMappedTypeIndexedAccess

Conversation

@ahejlsberg
Copy link
Copy Markdown
Member

With this PR we defer certain mapped type indexed access transformations. Previously, we'd eagerly transform an indexed access of the form { [P in K]: T}[X] into an instantiation of T where X is substituted for every occurrence of P. We now keep the original form and instead perform the transformation as we obtain the constraint of the indexed access.

Fixes #15756.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants