Skip to content

Treat indexed access types 'T[K]' as type variables#12623

Merged
ahejlsberg merged 4 commits into
masterfrom
nestedIndexedAccess
Dec 2, 2016
Merged

Treat indexed access types 'T[K]' as type variables#12623
ahejlsberg merged 4 commits into
masterfrom
nestedIndexedAccess

Conversation

@ahejlsberg

Copy link
Copy Markdown
Member

With this PR indexed access types T[K] become proper type variables such that types of the form T[K1][K2][K3]... and keyof T[K1][K2][K3]... can be constructed. Also, this PR enables type inference for recursive homomorphic mapped types.

Fixes #12544.
Fixes #12573.
Fixes #12606.

@ahejlsberg ahejlsberg merged commit a230cb7 into master Dec 2, 2016
@ahejlsberg ahejlsberg deleted the nestedIndexedAccess branch December 2, 2016 23:53
This was referenced Dec 3, 2016
@ivanpadavan

Copy link
Copy Markdown

IGNOREME: I am commenting here so I can easily find this issue again in the future, [since I can't do that by subscribing alone](https://github.com/isaacs/github/issues/283\).

@microsoft microsoft locked and limited conversation to collaborators Jul 3, 2018
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.

4 participants