From f4ea9df0f4ddfc5b46419710e0d4ff02c8b0260f Mon Sep 17 00:00:00 2001 From: Danil Alexeev Date: Fri, 3 Mar 2023 17:42:32 +0300 Subject: Fix GDScript code style regarding colon (cherry picked from commit ea5fd3d732a85029e8372425904971ad26153ff1) --- .../gdscript/tests/scripts/parser/features/static_typing.gd | 2 ++ .../gdscript/tests/scripts/parser/features/static_typing.out | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'modules/gdscript/tests/scripts/parser') diff --git a/modules/gdscript/tests/scripts/parser/features/static_typing.gd b/modules/gdscript/tests/scripts/parser/features/static_typing.gd index d42632c82d..0157ca2128 100644 --- a/modules/gdscript/tests/scripts/parser/features/static_typing.gd +++ b/modules/gdscript/tests/scripts/parser/features/static_typing.gd @@ -1,3 +1,5 @@ +# Do not fix code style here! + func test(): # The following lines are equivalent: var _integer: int = 1 diff --git a/modules/gdscript/tests/scripts/parser/features/static_typing.out b/modules/gdscript/tests/scripts/parser/features/static_typing.out index 92ce7bc0e0..207d90fef1 100644 --- a/modules/gdscript/tests/scripts/parser/features/static_typing.out +++ b/modules/gdscript/tests/scripts/parser/features/static_typing.out @@ -1,21 +1,21 @@ GDTEST_OK >> WARNING ->> Line: 9 +>> Line: 11 >> UNUSED_LOCAL_CONSTANT >> The local constant '_INTEGER' is declared but never used in the block. If this is intended, prefix it with an underscore: '__INTEGER' >> WARNING ->> Line: 10 +>> Line: 12 >> UNUSED_LOCAL_CONSTANT >> The local constant '_INTEGER_REDUNDANT_TYPED' is declared but never used in the block. If this is intended, prefix it with an underscore: '__INTEGER_REDUNDANT_TYPED' >> WARNING ->> Line: 11 +>> Line: 13 >> UNUSED_LOCAL_CONSTANT >> The local constant '_INTEGER_REDUNDANT_TYPED2' is declared but never used in the block. If this is intended, prefix it with an underscore: '__INTEGER_REDUNDANT_TYPED2' >> WARNING ->> Line: 12 +>> Line: 14 >> UNUSED_LOCAL_CONSTANT >> The local constant '_INTEGER_REDUNDANT_INFERRED' is declared but never used in the block. If this is intended, prefix it with an underscore: '__INTEGER_REDUNDANT_INFERRED' >> WARNING ->> Line: 13 +>> Line: 15 >> UNUSED_LOCAL_CONSTANT >> The local constant '_INTEGER_REDUNDANT_INFERRED2' is declared but never used in the block. If this is intended, prefix it with an underscore: '__INTEGER_REDUNDANT_INFERRED2' -- cgit v1.2.3