ajwang / groovypptest

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

Type inference not working for objects mentioned in the 'catch' clause #296

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
class Foo {
  def foo() {}
}

def f = new Foo()
try {
  f.foo()
} catch (any) {
  f.foo()
}

-------

Cannot find method Object.foo()

Original issue reported on code.google.com by gromop...@gmail.com on 7 Sep 2010 at 9:27

GoogleCodeExporter commented 8 years ago

Original comment by alex.tka...@gmail.com on 2 Jan 2011 at 12:54