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

A funcRef can be a default value for a function parameter #192

Open
Withered-Flower-0422 opened this issue Jan 2, 2025 · 0 comments
Open

Comments

@Withered-Flower-0422
Copy link

> f = function
>>> print "f"
>>> end function
> a = function(x=@f) // This should throw a Compiler Error: parameter default value must be a literal value
>>> print x
>>> end function
> a
@f 
> 
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

No branches or pull requests

1 participant