[swfinterp] Add more builtins and improve static variables

This commit is contained in:
Philipp Hagemeister 2014-11-17 07:54:06 +01:00
parent 1921b24551
commit fbf94a7815
2 changed files with 49 additions and 8 deletions

View file

@ -0,0 +1,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;
}
}
}