-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Question on semantics of inlined parameters. #1570
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
Yes, I think that's correct. The argument should be legal. On Sat, Oct 8, 2016 at 9:29 PM, Nicolas Stucki [email protected]
Prof. Martin Odersky |
Inline parameters can always be passed to other inline parameters. Fixes scala#1570.
Fix #1570: Allow inline parameters as inline args
currently has the following error
I would assume that
n
should be considered as a constant as at call site it will be a constant andfoo
is going to be inlined. Hence this should be allowed. Is this correct? Or, I'm missing something else?The text was updated successfully, but these errors were encountered: