[Gambas-user] Issue 78 in gambas: Illegal optimization / May a method's return value type in a derived class be different from the base class?

gambas at ...2524... gambas at ...2524...
Thu Aug 11 17:34:51 CEST 2011


Updates:
	Status: Accepted
	Labels: -Version Version-TRUNK

Comment #1 on issue 78 by benoit.m... at ...626...: Illegal optimization / May  
a method's return value type in a derived class be different from the base  
class?
http://code.google.com/p/gambas/issues/detail?id=78

The solution is (3).

You must be allowed to override a function by another function that returns  
a different datatype.

Anyway, if you have to do it, I think your class design is broken somewhere!





More information about the User mailing list