GDScript: Allow classes declaration to be done in single line
Incidentally, allow multiple statements in single line functions when using semicolon as a terminator.
This commit is contained in:
parent
db028ac700
commit
e5ebc9710d
6 changed files with 63 additions and 8 deletions
|
|
@ -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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue