[swfinterp] Basic support for constants (only ints for now)
This commit is contained in:
parent
162f54eca6
commit
cd9ad1d7e8
2 changed files with 45 additions and 10 deletions
12
test/swftests/ConstantInt.as
Normal file
12
test/swftests/ConstantInt.as
Normal file
|
@ -0,0 +1,12 @@
|
|||
// input: []
|
||||
// output: 2
|
||||
|
||||
package {
|
||||
public class ConstantInt {
|
||||
private static const x:int = 2;
|
||||
|
||||
public static function main():int{
|
||||
return x;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue