You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Merge pull request #52905 from vnen/gdscript-single-line-declaration
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#GDTEST_OK
|
||||
|
||||
func test():
|
||||
a();
|
||||
b();
|
||||
c();
|
||||
d();
|
||||
e();
|
||||
|
||||
func a(): print("a");
|
||||
|
||||
func b(): print("b1"); print("b2")
|
||||
|
||||
func c(): print("c1"); print("c2");
|
||||
|
||||
func d():
|
||||
print("d1");
|
||||
print("d2")
|
||||
|
||||
func e():
|
||||
print("e1");
|
||||
print("e2");
|
||||
@@ -0,0 +1,10 @@
|
||||
GDTEST_OK
|
||||
a
|
||||
b1
|
||||
b2
|
||||
c1
|
||||
c2
|
||||
d1
|
||||
d2
|
||||
e1
|
||||
e2
|
||||
@@ -0,0 +1,11 @@
|
||||
#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)
|
||||
@@ -0,0 +1,3 @@
|
||||
GDTEST_OK
|
||||
Ok
|
||||
Ok 2
|
||||
Reference in New Issue
Block a user