Is it possible to specify that a return type of a function is the same as one of the parameter types where it is unknown what the parameter type is. For example:
class Factory {
public function get(interface:*):Object {
}
}
The problem with the above is that I have to cast the object to interface all the time.
Can you do this?:
Doesn’t seem to require casting: