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

Augmented functions aren't checked properly #26

Closed
mmkal opened this issue Apr 11, 2023 · 0 comments · Fixed by #21
Closed

Augmented functions aren't checked properly #26

mmkal opened this issue Apr 11, 2023 · 0 comments · Fixed by #21

Comments

@mmkal
Copy link
Owner

mmkal commented Apr 11, 2023

This should pass:

expectTypeOf<(() => 1) & {x: 1}>().not.toEqualTypeOf<() => 1>()

Or more importantly this should fail:

expectTypeOf<(() => 1) & {x: 1}>().toEqualTypeOf<() => 1>()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant