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

AssertEqual wrong identify never #37

Closed
huan opened this issue Mar 25, 2022 · 1 comment
Closed

AssertEqual wrong identify never #37

huan opened this issue Mar 25, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@huan
Copy link
Owner

huan commented Mar 25, 2022

const typing: AssertEqual<never, never> = true
// Type 'boolean' is not assignable to type 'never'.ts(2322)

Need to be fixed.

@huan huan added the bug Something isn't working label Mar 25, 2022
@huan
Copy link
Owner Author

huan commented Mar 25, 2022

Solution: use [T] extends [Expected] instead of T extends Expected in generic.

See:

huan added a commit that referenced this issue Mar 25, 2022
@huan huan closed this as completed Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant