typed return function with Array return value - impossible?

Topics: Language Specification
Apr 23, 2013 at 12:14 PM
Edited Apr 23, 2013 at 12:14 PM
function ReturnArray() : Array {
    return new Array(); // cannot convert any[] to Array error
}
Hmm... Is this a bug or am I missing something?
Coordinator
Apr 23, 2013 at 3:01 PM
I just tried your example in the 0.9.0 alpha, and I'm not seeing the error. Which compiler are you using?
Apr 23, 2013 at 3:22 PM
That was Version 0.8.3.1. Updated to 0.9.0 - works fine.