Hi All,
 
I've got runtime ActionScript error when "return" statement placed inside try/finally block. Small test case attached below, it reports me:
 
VerifyError: Error #1068: void and * cannot be reconciled.
 
Is it correct AS3 behaviour?
 
 
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.macromedia.com/2005/mxml" xmlns="*" creationComplete="test1()">
<mx:Script><![CDATA[
private function test1():void
{
 var i:int = 0;
 try {
  i = 1;
  if( i==2 )
   return; // <- error statement
 } finally {
  i = 0;
 }
}
]]></mx:Script></mx:Application>
 
--
Thanks,
Vadim.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to