About the Groovy category

This subcategory is for Groovy programmers. Don’t be shy, no question is too simple or too complicated.

Please, do not post here if your question is about a puzzle, a contest or anything that relates to the CodinGame platform (there are other categories for that purpose).

1 Like

Is Groovy bugged somehow? I tried it a few times and as soon as the code is getting a bit more complex (using multiple inner classes) the code stops working on really strange things (like
def a = []
println a
breaks, because a is not defined (a.length doesn’t work too, a.push(1) too)