typed return function with Array return value - impossible?

Topics: Language Specification
Apr 23, 2013 at 11:14 AM
Edited Apr 23, 2013 at 11:14 AM
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 2: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 2:22 PM
That was Version 0.8.3.1. Updated to 0.9.0 - works fine.