Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Currently use statement returns nothing, even if "return " is explicitly written inside the "use" block. When a value needs to be returned, a workaround like the following has to be put into place:
def f(){
def result
use(...)
return result
}
Reason being that the return type of GroovyCategorySupport.use() method is void.