groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Theodorou <blackd...@gmx.org>
Subject Re: Bypassing local variables in a closure
Date Sat, 18 Jul 2015 06:10:55 GMT
Am 18.07.2015 02:53, schrieb yaro:
> Hi, all!
>
> When I execute closure.call(), I get an error: No signature of method:
> java.lang.Integer.call() for arg types LinkedHashMap.
> Rightly so, because local variables are looked up before the delegate and
> user (which value is int
>   5) is enclosed by the closure.

normally the solution is to not to use that name as local variable

bye blackdrag

-- 
Jochen "blackdrag" Theodorou
blog: http://blackdragsview.blogspot.com/


Mime
View raw message