aboutsummaryrefslogtreecommitdiff
path: root/test/swftests/ConstArrayAccess.as
blob: 07dc3f46068c277142d86e59a1d2bda6351c0c8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// input: []
// output: 4

package {
public class ConstArrayAccess {
	private static const x:int = 2;
	private static const ar:Array = ["42", "3411"];

    public static function main():int{
        var c:ConstArrayAccess = new ConstArrayAccess();
        return c.f();
    }

    public function f(): int {
    	return ar[1].length;
    }
}
}