[swfinterp] Add more builtins and improve static variables

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

No files matched your search

+18
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;
}
}
}