|
[
Permalink
| « Hide
]
Arne Deutsch added a comment - 24/Sep/08 03:51 PM
Changed priority to "minor" ... this would be nice to have but does not result in a major loss of functionality.
public function get someProperty() : int { // fails // if(myNum > .5) return 10; // fails // var myNum : Number = Math.random(); // if(myNum > .5) return _someProperty; //fails // if (false) return 10; } This is a bug in the parser, as none of these examples will compile. This is a bug and moved over there.
Hi,
There is still an issue : private function test() : int { for each ( var frameLabel : FrameLabel in currentLabels ) { if ( frameLabel.name == "something" ) return frameLabel.frame; } // An error should be displayed here, cause a return statement is missing. } |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||