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
YAHOO! GROUPS LINKS
|
- [flexcoders] Runtime Error #1068: void and * cannot be rec... Vadim Melnik
- RE: [flexcoders] Runtime Error #1068: void and * cann... João Fernandes
- Re: [flexcoders] Runtime Error #1068: void and * ... Vadim Melnik
- Re: [flexcoders] Runtime Error #1068: void an... Carolyn Cole
- Re: [flexcoders] Runtime Error #1068: voi... Vadim Melnik
- RE: [flexcoders] Runtime Error #1068... Matt Chotin