ajwang / groovypptest

Automatically exported from code.google.com/p/groovypptest
0 stars 0 forks source link

Tuple notation is not supported #324

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
Duplicate of #322.

Original comment by p.ledbr...@gmail.com on 7 Dec 2010 at 7:38

GoogleCodeExporter commented 8 years ago

Original comment by alex.tka...@gmail.com on 7 Dec 2010 at 7:55