mirror of
				https://github.com/godotengine/godot.git
				synced 2025-11-04 07:31:16 +00:00 
			
		
		
		
	
		
			
	
	
		
			11 lines
		
	
	
	
		
			178 B
		
	
	
	
		
			GDScript3
		
	
	
	
	
	
		
		
			
		
	
	
			11 lines
		
	
	
	
		
			178 B
		
	
	
	
		
			GDScript3
		
	
	
	
	
	
| 
								 | 
							
								func test():
							 | 
						||
| 
								 | 
							
									# This should emit a warning.
							 | 
						||
| 
								 | 
							
									var __ = 5 / 2
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
									# These should not emit warnings.
							 | 
						||
| 
								 | 
							
									__ = float(5) / 2
							 | 
						||
| 
								 | 
							
									__ = 5 / float(2)
							 | 
						||
| 
								 | 
							
									__ = 5.0 / 2
							 | 
						||
| 
								 | 
							
									__ = 5 / 2.0
							 | 
						||
| 
								 | 
							
									__ = 5.0 / 2.0
							 |