mirror of
				https://github.com/godotengine/godot.git
				synced 2025-11-04 07:31:16 +00:00 
			
		
		
		
	
		
			
	
	
		
			9 lines
		
	
	
	
		
			229 B
		
	
	
	
		
			GDScript3
		
	
	
	
	
	
		
		
			
		
	
	
			9 lines
		
	
	
	
		
			229 B
		
	
	
	
		
			GDScript3
		
	
	
	
	
	
| 
								 | 
							
								var foo = 123
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func test():
							 | 
						||
| 
								 | 
							
									# Notice the `var` keyword. Without this keyword, no warning would be emitted
							 | 
						||
| 
								 | 
							
									# because no new variable would be created. Instead, the class variable's value
							 | 
						||
| 
								 | 
							
									# would be overwritten.
							 | 
						||
| 
								 | 
							
									var foo = 456
							 |