ajwang / groovypptest

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

Call super when overriding overloaded operator #365

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I have

@Typed class FooMap extends LinkedHashMap {
  FooMap plus(Collection coll) {
    super.plus(coll)
  }
}

The compiler complains: Cannot reference default groovy method 'plus' using 
'super'. Call the static method instead.

It works in plain Groovy, I don't know if you consider it a bug in Groovy++

Original issue reported on code.google.com by adam%sch...@gtempaccount.com on 4 Apr 2011 at 4:52

GoogleCodeExporter commented 8 years ago
Well, not as bug but as not yet implemented feature.

Original comment by alex.tka...@gmail.com on 4 Apr 2011 at 5:24