peterdoornbosch1234 (1) [Avatar] Offline
#1
According to section 1.3.2, "Unless explicitly stated otherwise, you can put any code example in this book directly into groovysh or groovyConsole and run it there. "

Let's take the first examle of the book, listing 2.1:

groovy:000> def x = 1
===> 1
groovy:000> assert x == 1
ERROR groovy.lang.MissingPropertyException:
No such property: x for class: groovysh_evaluate
at groovysh_evaluate.run (groovysh_evaluate:2)
...

What's going on here?