Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants