mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	GDScript: Fix autocomplete inside a block with a type test condition
(cherry picked from commit e289a4ab2c)
			
			
This commit is contained in:
		
							parent
							
								
									5824967f2f
								
							
						
					
					
						commit
						23f2c1234c
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -1956,7 +1956,7 @@ static bool _guess_identifier_type(GDScriptParser::CompletionContext &p_context, | |||
| 				GDScriptParser::CompletionContext c = p_context; | ||||
| 				c.current_line = type_test->operand->start_line; | ||||
| 				c.current_suite = suite; | ||||
| 				if ((!id_type.is_set() || id_type.is_variant()) && type_test->test_datatype.is_hard_type()) { | ||||
| 				if (type_test->test_datatype.is_hard_type()) { | ||||
| 					id_type = type_test->test_datatype; | ||||
| 					if (last_assign_line < c.current_line) { | ||||
| 						// Override last assignment.
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dmitrii Maganov
						Dmitrii Maganov