Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usage: wrong scoping for substitution type #73

Closed
ajafff opened this issue Jul 19, 2018 · 0 comments
Closed

usage: wrong scoping for substitution type #73

ajafff opened this issue Jul 19, 2018 · 0 comments
Assignees
Labels

Comments

@ajafff
Copy link
Owner

ajafff commented Jul 19, 2018

See ajafff/tslint-consistent-codestyle#85

type Values<T> = T extends {[K in keyof T]: infer U} ? U : never;

Expected:
U in the then branch of the conditional type references infer U inside the mapped type.

Actual:
infer U has no uses.

@ajafff ajafff added the bug label Jul 19, 2018
@ajafff ajafff self-assigned this Jul 19, 2018
@ajafff ajafff closed this as completed in 359bf07 Jul 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant