mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[swfinterp] Implement member assignment
This commit is contained in:
		
							
								
								
									
										22
									
								
								test/swftests/MemberAssignment.as
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								test/swftests/MemberAssignment.as
									
									
									
									
									
										Normal 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); | ||||
|     } | ||||
| } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Philipp Hagemeister
					Philipp Hagemeister