mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 21:51:22 +00:00 
			
		
		
		
	Check for parameters shadowing class members
This commit is contained in:
		
							parent
							
								
									e3a8ab68ce
								
							
						
					
					
						commit
						52781535a3
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -43,7 +43,7 @@ bool GDScriptCompiler::_is_class_member_property(CodeGen &codegen, const StringN | |||
| 		return false; | ||||
| 	} | ||||
| 
 | ||||
| 	if (codegen.locals.has(p_name)) { | ||||
| 	if (codegen.parameters.has(p_name) || codegen.locals.has(p_name)) { | ||||
| 		return false; //shadowed
 | ||||
| 	} | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 cdemirer
						cdemirer