mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 21:51:22 +00:00 
			
		
		
		
	Parser: Check all the arguments of the ternary operator
This commit is contained in:
		
							parent
							
								
									d1f8fd6384
								
							
						
					
					
						commit
						9254961297
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -6466,6 +6466,8 @@ GDScriptParser::DataType GDScriptParser::_reduce_node_type(Node *p_node) { | |||
| 
 | ||||
| 					DataType true_type = _reduce_node_type(op->arguments[1]); | ||||
| 					DataType false_type = _reduce_node_type(op->arguments[2]); | ||||
| 					// Check arguments[0] errors.
 | ||||
| 					_reduce_node_type(op->arguments[0]); | ||||
| 
 | ||||
| 					// If types are equal, then the expression is of the same type
 | ||||
| 					// If they are compatible, return the broader type
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 lupoDharkael
						lupoDharkael