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

Fix nested anonymous block parameter passing #51

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kaspth
Copy link

@kaspth kaspth commented Dec 22, 2024

When I tried to bundle exec qt for Quickdraw's tests, on the .ruby-version Ruby 3.3.0, I saw two SyntaxErrors:

lib/quickdraw/concurrent_array.rb:14: anonymous block parameter is also used within block (SyntaxError)
lib/quickdraw/rspec_adapter.rb:33: anonymous block parameter is also used within block (SyntaxError)

It looks like we can't forward on the anonymous block parameter into nested blocks.

With these fixes the tests ran and passed for me.

When I tried to `bundle exec qt` for Quickdraw's tests, on the `.ruby-version` Ruby 3.3.0, I saw two SyntaxErrors:

```
lib/quickdraw/concurrent_array.rb:14: anonymous block parameter is also used within block (SyntaxError)
lib/quickdraw/rspec_adapter.rb:33: anonymous block parameter is also used within block (SyntaxError)
```

It looks like we can't forward on the anonymous block parameter into nested blocks.

With these fixes the tests ran and passed for me.
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