-
Notifications
You must be signed in to change notification settings - Fork 2k
unbound functions with this
as a default parameter value
#2362
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
Comments
Now that I think about it, this could actually be a desirable output, though syntactically confusing ( The problem with |
Due to the specialcasing, |
Besides, |
Seems expected to me |
This is tagged |
I think we've come to the conclusion that default arguments are evaluated in the context of the function body, so the current output is desired. Closing as |
This may be a duplicate, but I can't find it:
Notice that the last compilation has different behaviour from the rest, though one would expect it to have equivalent behaviour. I suspect there's similar problems with
arguments
, regardless of boundedness.The text was updated successfully, but these errors were encountered: