diff options
author | Philipp Hagemeister <[email protected]> | 2014-11-17 01:27:34 +0100 |
---|---|---|
committer | Philipp Hagemeister <[email protected]> | 2014-11-17 01:27:34 +0100 |
commit | 7f3e33a1475cd4ac11c73108e03d3405b86262b8 (patch) | |
tree | 11f1769bf9c884bda13cc61c96d3a85a1c83f3ea /test/swftests | |
parent | b7558d9881ae0dede7c13e1c082eaf89aefed27e (diff) | |
download | youtube-dl-7f3e33a1475cd4ac11c73108e03d3405b86262b8.tar.gz youtube-dl-7f3e33a1475cd4ac11c73108e03d3405b86262b8.zip |
[swfinterp] Implement member assignment
Diffstat (limited to 'test/swftests')
-rw-r--r-- | test/swftests/MemberAssignment.as | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/swftests/MemberAssignment.as b/test/swftests/MemberAssignment.as new file mode 100644 index 000000000..dcba5e3ff --- /dev/null +++ b/test/swftests/MemberAssignment.as @@ -0,0 +1,22 @@ +// input: [1] +// output: 2 + +package { +public class MemberAssignment { + public var v:int; + + public function g():int { + return this.v; + } + + public function f(a:int):int{ + this.v = a; + return this.v + this.g(); + } + + public static function main(a:int): int { + var v:MemberAssignment = new MemberAssignment(); + return v.f(a); + } +} +} |