1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-11-22 08:52:52 +08:00
youtube-dl/test/swftests/ConstArrayAccess.as
2014-11-17 07:54:06 +01:00

19 lines
344 B
ActionScript

// 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;
}
}
}