ajwang / groovypptest

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

Pair should be deconstructable via multiple assignment #342

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
@Typed class Foo {
  Pair<String, String> foo() {["a", "b"]}

  def bar() {
    def (a, b) = foo()
  }
}

doesn't compile (and work). It would be cool if it did.

Original issue reported on code.google.com by gromop...@gmail.com on 6 Mar 2011 at 9:29

GoogleCodeExporter commented 8 years ago

Original comment by alex.tka...@gmail.com on 6 Mar 2011 at 10:31