mirror of
				https://github.com/godotengine/godot.git
				synced 2025-11-04 07:31:16 +00:00 
			
		
		
		
	
		
			
	
	
		
			13 lines
		
	
	
	
		
			347 B
		
	
	
	
		
			GDScript3
		
	
	
	
	
	
		
		
			
		
	
	
			13 lines
		
	
	
	
		
			347 B
		
	
	
	
		
			GDScript3
		
	
	
	
	
	
| 
								 | 
							
								# This should emit a warning since the unused argument is not prefixed with an underscore.
							 | 
						||
| 
								 | 
							
								func function_with_unused_argument(p_arg1, p_arg2):
							 | 
						||
| 
								 | 
							
									print(p_arg1)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								# This shouldn't emit a warning since the unused argument is prefixed with an underscore.
							 | 
						||
| 
								 | 
							
								func function_with_ignored_unused_argument(p_arg1, _p_arg2):
							 | 
						||
| 
								 | 
							
									print(p_arg1)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func test():
							 | 
						||
| 
								 | 
							
									pass
							 |