What steps will reproduce the problem?
running groovyc with the following file names Test.groovy
@Typed
class Test {
def method() {
def List<String> l=["_hello", "_world"]
def (hello,world) = l
println hello.substring(1)
println world.substring(2)
}
}
What is the expected output? What do you see instead?
It should compile. 'hello' and 'world' should be infered as String.
Compilation fails on line "def (hello,world) = l"
What version of the product are you using? On what operating system?
groovypp-0.4.93.jar
Please provide any additional information below.
/
Original issue reported on code.google.com by manu....@gmail.com on 3 Dec 2010 at 7:01
Original issue reported on code.google.com by
manu....@gmail.com
on 3 Dec 2010 at 7:01