]> Raphaƫl G. Git Repositories - youtubedl/blob - test/swftests/ConstArrayAccess.as
Prepate to upload
[youtubedl] / test / swftests / ConstArrayAccess.as
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 }