Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.0-beta-2
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
class Foo {
doSomething() {
data = ["name": "James", "location": "London"]
for (e in data) {
println("property $
is $
{e.value}")
}
}
closureExample(collection) {
collection.each { println("value $
") }
}
static void main(args)
{ values = [1, 2, 3, "abc"] closureExample(values) }}
does not work since closureExample is not a static method
Thanks Zohar. Am really close to unit testing all examples...