You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
384 B

  1. // input: [1]
  2. // output: 2
  3. package {
  4. public class MemberAssignment {
  5. public var v:int;
  6. public function g():int {
  7. return this.v;
  8. }
  9. public function f(a:int):int{
  10. this.v = a;
  11. return this.v + this.g();
  12. }
  13. public static function main(a:int): int {
  14. var v:MemberAssignment = new MemberAssignment();
  15. return v.f(a);
  16. }
  17. }
  18. }