Skip to content

Allow typed functions in type expressions#1620

Open
markwpearce wants to merge 11 commits intorokucommunity:v1from
markwpearce:allow_typed_functions_in_type_expressions
Open

Allow typed functions in type expressions#1620
markwpearce wants to merge 11 commits intorokucommunity:v1from
markwpearce:allow_typed_functions_in_type_expressions

Conversation

@markwpearce
Copy link
Collaborator

  • Allows syntax like:
sub useCallBack(callback as function(name as string, num as integer) as string)
    print "Result is: " + callback("hello", 7)
end sub
  • Adds validation on typed functions used as arguments
  • Provides better hovers for typed functions
  • Fixes some issues with using Type statements
  • Adds docs
image image

@markwpearce markwpearce added this to the v1.0.0 milestone Feb 11, 2026
…atability of optional args in a typed function type
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

Comments