mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	 e5ebc9710d
			
		
	
	
		e5ebc9710d
		
			
		
	
	
	
	
		
			
			Incidentally, allow multiple statements in single line functions when using semicolon as a terminator.
		
			
				
	
	
		
			11 lines
		
	
	
	
		
			183 B
		
	
	
	
		
			GDScript
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
	
		
			183 B
		
	
	
	
		
			GDScript
		
	
	
	
	
	
| #GDTEST_OK
 | |
| 
 | |
| func test(): C.new().test("Ok"); test2()
 | |
| 
 | |
| func test2(): print("Ok 2")
 | |
| 
 | |
| class A: pass
 | |
| 
 | |
| class B extends RefCounted: pass
 | |
| 
 | |
| class C extends RefCounted: func test(x): print(x)
 |