Groovy web console

subscribe to the feed Subscribe
to this
site
proof @delegate works (via #groovywebconsole)
tweet this snippet Tweet
this
script

proof @delegate works

Published 3 weeks ago by hlaaftana
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
class Main {
  @Delegate GroovyShell gs = new GroovyShell()

  static main(args) {
    println 'x'
  }
}