Language overview states: "The return type of a function can be written  
void, which means that no return value is allowed.".

But the reference implementation doesn't complain about this:

>> type F = function(int,int):void;
>> var f:F=function(a,b){return a+b;};
>> f(2,2);
4

Is the constraint described in the overview prose meant to be applied  
here? If so, when?

-- 
Hallvord R. M. Steen
Core QA JavaScript tester, Opera Software
http://www.opera.com/
Opera - simply the best Internet experience
_______________________________________________
Es4-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es4-discuss

Reply via email to