youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

ConstArrayAccess.as (344B)


      1 // input: []
      2 // output: 4
      3 
      4 package {
      5 public class ConstArrayAccess {
      6 	private static const x:int = 2;
      7 	private static const ar:Array = ["42", "3411"];
      8 
      9     public static function main():int{
     10         var c:ConstArrayAccess = new ConstArrayAccess();
     11         return c.f();
     12     }
     13 
     14     public function f(): int {
     15     	return ar[1].length;
     16     }
     17 }
     18 }