Groovy web console

subscribe to the feed Subscribe
to this
site

Groovy non-optional param missing

Published 6 years ago by Igor Shults
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
void doSomething(def foo) {
    println foo
}

void doSomethingElse(int bar) {
    println bar
}

doSomething()
doSomethingElse() // Throws MissingMethodException