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

Allow using earlier recipe parameters in later parameters without having them in outer scope #2381

Closed
casey opened this issue Sep 21, 2024 · 1 comment

Comments

@casey
Copy link
Owner

casey commented Sep 21, 2024

For some reason this works:

a := ''
target a *b=a:
  echo {{ b }}

But this doesn't:

a := ''
target a *b=a:
  echo {{ b }}

It should be possible to use the value of the a parameter without having a in the outer scope.

@casey
Copy link
Owner Author

casey commented Sep 21, 2024

Fixed in #2382, this was so close to working and so simple to fix, it even had a test which checked that it was an error. I hope past me didn't have a really good reason for not allowing this.

@casey casey closed this as completed Sep 21, 2024
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