]>
Commit | Line | Data |
---|---|---|
fbf94a78 PH |
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 | } |