From 1e26bf23c22b2e425be3ee1b00326a0af129337f Mon Sep 17 00:00:00 2001 From: "Andrii Doroshenko (Xrayez)" Date: Fri, 16 Apr 2021 22:16:19 +0300 Subject: Rename GDScript test script filenames to use `snake_case` --- .../tests/scripts/parser/features/variable_declaration.gd | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 modules/gdscript/tests/scripts/parser/features/variable_declaration.gd (limited to 'modules/gdscript/tests/scripts/parser/features/variable_declaration.gd') diff --git a/modules/gdscript/tests/scripts/parser/features/variable_declaration.gd b/modules/gdscript/tests/scripts/parser/features/variable_declaration.gd new file mode 100644 index 0000000000..3b48f10ca7 --- /dev/null +++ b/modules/gdscript/tests/scripts/parser/features/variable_declaration.gd @@ -0,0 +1,12 @@ +var a # No init. +var b = 42 # Init. + +func test(): + var c # No init, local. + var d = 23 # Init, local. + + a = 1 + c = 2 + + prints(a, b, c, d) + print("OK") -- cgit v1.2.3