Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.1-beta-1
-
Component/s: None
-
Labels:None
-
Testcase included:yes
-
Number of attachments :
Description
The use(category)
{closure}construct doesn't seem to be returning any useful value. It would be useful if it propagated the value returned by its closure. This would a more natural "use" of categories in cases like:
def function() {
return use(HelperFunctions)
}
Issue Links
- duplicates
-
GROOVY-1287
use(category, closure) should return the closures return value.
-
- relates to
-
GROOVY-2474
Change all withXXX methods to return the value returned by their closure instead of void
-
Should work in HEAD.