Browse Source

[swfinterp] Implement member assignment

totalwebcasting
Philipp Hagemeister 10 years ago
parent
commit
7f3e33a147
1 changed files with 22 additions and 0 deletions
  1. +22
    -0
      test/swftests/MemberAssignment.as

+ 22
- 0
test/swftests/MemberAssignment.as View File

@ -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);
}
}
}

Loading…
Cancel
Save