Is it possible to dertermine the elements type of the returning array in a function?
For example, if the elements should be floats:
class test{
/**
* This should return an array containing float values,
* but I get a fatal error instead
*/
public static function doStuff() : float[] {
return [ 10.3, 12.8 ];
}
}