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

v0.5.6 Closure.withDelegate doesn't work outside of the tests. #12

Open
timyates opened this issue Nov 25, 2013 · 0 comments
Open

v0.5.6 Closure.withDelegate doesn't work outside of the tests. #12

timyates opened this issue Nov 25, 2013 · 0 comments
Assignees

Comments

@timyates
Copy link
Owner

So, the tests pass, the groovydoc testcase of

 * <pre class="groovyTestCase">
 *   def testClosure = { num ->
 *       num + val
 *   }
 *
 *   def value = testClosure.withDelegate( [ val: 4 ] )( 3 )
 *   assert value == 7
 * </pre>
 *

passes, but if you @Grab the library, Groovy claims to have no knowledge of withDelegate 🐼

Needs investigation and possible bug reports

@ghost ghost assigned timyates Nov 25, 2013
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