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

make function types as constraints usable #895

Merged
merged 1 commit into from
Jan 4, 2025

Conversation

hishamhm
Copy link
Member

@hishamhm hishamhm commented Jan 3, 2025

See #211.

Copy link

github-actions bot commented Jan 3, 2025

Teal Playground URL: https://895--teal-playground-preview.netlify.app

@hishamhm
Copy link
Member Author

hishamhm commented Jan 3, 2025

This does not fully address all the things mentioned in #211. I don't think it provides much improvement over just using the F type directly (in the test case example), but it makes the behavior of type constraints more consistent (without this tweak, that test case fails with f: not a function)

@hishamhm hishamhm merged commit 44c13b0 into master Jan 4, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant