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

Function params are not validated #826

Open
awareness481 opened this issue Mar 14, 2023 · 0 comments
Open

Function params are not validated #826

awareness481 opened this issue Mar 14, 2023 · 0 comments

Comments

@awareness481
Copy link
Contributor

awareness481 commented Mar 14, 2023

type A<T extends string> = T;
function fn(a: Uppercase<number>, b: A<number>) {}
// no errors reported

https://tsplay.dev/NnlPaW

It should report an error for each param. Not sure if params are not validated in all cases or some cases

@kdy1 kdy1 added this to the v0.0.1: Correctness milestone Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants