ConstArrayAccess.as 344 B

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