Skip to content

Instantly share code, notes, and snippets.

@michaelrice
Created October 27, 2014 20:47
Show Gist options
  • Select an option

  • Save michaelrice/a3727ae2038bd2e4f3f7 to your computer and use it in GitHub Desktop.

Select an option

Save michaelrice/a3727ae2038bd2e4f3f7 to your computer and use it in GitHub Desktop.
Groovy Shell (1.8.6, JVM: 1.7.0_67)
Type 'help' or '\h' for help.
--------------------------------------------------------------------------------------------------------------------------------------------
groovy:000> foo.each{}
ERROR groovy.lang.MissingPropertyException:
No such property: foo for class: groovysh_evaluate
at groovysh_evaluate.run (groovysh_evaluate:2)
...
groovy:000>
Groovy Shell (2.3.6, JVM: 1.7.0_67)
Type ':help' or ':h' for help.
--------------------------------------------------------------------------------------------------------------------------------------------
groovy:000> foo.each{}
Unknown property: foo
groovy:000>
@michaelrice
Copy link
Copy Markdown
Author

groovy:000> foo.each {
groovy:001> }
ERROR groovy.lang.MissingPropertyException:
No such property: foo for class: groovysh_evaluate
at groovysh_evaluate.run (groovysh_evaluate:2)
...
groovy:001>

@multi-io
Copy link
Copy Markdown

Groovy Shell (2.2.2, JVM: 1.6.0_30)

Type 'help' or '\h' for help.

groovy:000> foo.each{
groovy:001> }
Unknown property: foo
groovy:001> 1+1
groovy:002> hello
groovy:003> jksghsjkdgdfgdfg
groovy:004>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment