diff options
author | Philipp Hagemeister <[email protected]> | 2014-07-20 12:47:15 +0200 |
---|---|---|
committer | Philipp Hagemeister <[email protected]> | 2014-07-20 12:47:15 +0200 |
commit | 01b4b745749bb92b4a56b4201d699740cbf450ab (patch) | |
tree | bf5f4e102d6a457ba5c16e79df69aeed3641f009 /test/swftests | |
parent | 70f767dc65189df0118d319d62385e54bd9bb03e (diff) | |
download | youtube-dl-01b4b745749bb92b4a56b4201d699740cbf450ab.tar.gz youtube-dl-01b4b745749bb92b4a56b4201d699740cbf450ab.zip |
[swfinterp] Add support for calls to instance methods
Diffstat (limited to 'test/swftests')
-rw-r--r-- | test/swftests/ClassCall.as | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/swftests/ClassCall.as b/test/swftests/ClassCall.as new file mode 100644 index 000000000..aef58daf3 --- /dev/null +++ b/test/swftests/ClassCall.as @@ -0,0 +1,17 @@ +// input: [] +// output: 121 + +package { +public class ClassCall { + public static function main():int{ + var f:OtherClass = new OtherClass(); + return f.func(100,20); + } +} +} + +class OtherClass { + public function func(x: int, y: int):int { + return x+y+1; + } +} |