Allow typed functions in type expressions#1620
Allow typed functions in type expressions#1620markwpearce merged 14 commits intorokucommunity:v1from
Conversation
markwpearce
commented
Feb 11, 2026
- Allows syntax like:
- Adds validation on typed functions used as arguments
- Provides better hovers for typed functions
- Fixes some issues with using Type statements
- Adds docs
…ing typed functions
…atability of optional args in a typed function type
luis-j-soares
left a comment
There was a problem hiding this comment.
Still trying to nail down how the entire type system works, but fwiw it looks good, and works without issue from the little I tested on my project.
A potential gap is recursive function types, which is not reflected in the tests. Also an outdated example in the docs.
Co-authored-by: Luis Jacobetty Soares <57358121+luis-j-soares@users.noreply.github.com>
Good point! I'll add a test to show this. |
TwitchBronBron
left a comment
There was a problem hiding this comment.
This looks great! The tests really seem to cover all the bases. Fantastic work! Feel free to merge once you're done making changes.