Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Objectteams » compilation problems with a generic callin binding
compilation problems with a generic callin binding [message #567027] Wed, 06 January 2010 11:10
Eugene Hutorny is currently offline Eugene Hutorny
Messages: 109
Registered: January 2010
Senior Member
Method designator binds to a method returning T whereas return type T is specified (OTJLD 4.1(c))

<T extends Specializable> T castAs(Class<T> type) <- replace T castAs(Class<T> type);
callin <T extends Specializable> T castAs(Class<T> type) {
return Education.this.castAs(type);
}


Two other variations with the generic also fail to compile.
Complete sources to reproduce the problem can be found on this http://hutorny.in.ua/wp-content/uploads/2010/01/exer4.zip
Previous Topic:OTREInternalError Binding error: base-call impossible!
Next Topic:Suggestion on callin bindings
Goto Forum:
  


Current Time: Wed Oct 01 16:35:07 GMT 2014

Powered by FUDForum. Page generated in 0.16607 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software