blob: e783ec5d53b3f51af24ef69ad569e70cc5f4d848 [file] [log] [blame]
package groovy
class ArrayTypeTest extends GroovyTestCase {
void testClosureWithTypedParam() {
def c = {String[] foo->println("called with $foo") }
c(null)
}
void testVariableType() {
Object[] foo = methodThatReturnsArray()
println "foo is $foo"
}
Object[] methodThatReturnsArray() {
println "Invoked the method"
return null
}
}