]> Raphaƫl G. Git Repositories - youtubedl/blob - test/swftests/MemberAssignment.as
Imported Upstream version 2015.02.06
[youtubedl] / test / swftests / MemberAssignment.as
1 // input: [1]
2 // output: 2
3
4 package {
5 public class MemberAssignment {
6 public var v:int;
7
8 public function g():int {
9 return this.v;
10 }
11
12 public function f(a:int):int{
13 this.v = a;
14 return this.v + this.g();
15 }
16
17 public static function main(a:int): int {
18 var v:MemberAssignment = new MemberAssignment();
19 return v.f(a);
20 }
21 }
22 }