You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
344 B

  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. }