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/runtime/features/default_set_beforehand.gd | 4 ++-- .../scripts/runtime/features/property_with_operator_assignment.gd | 2 +- .../runtime/features/use_conversion_assign_with_variant_value.gd | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/gdscript/tests/scripts/runtime') diff --git a/modules/gdscript/tests/scripts/runtime/features/default_set_beforehand.gd b/modules/gdscript/tests/scripts/runtime/features/default_set_beforehand.gd index 03278e453f..0851d939dc 100644 --- a/modules/gdscript/tests/scripts/runtime/features/default_set_beforehand.gd +++ b/modules/gdscript/tests/scripts/runtime/features/default_set_beforehand.gd @@ -1,8 +1,8 @@ extends Node @onready var later_inferred := [1] -@onready var later_static : Array -@onready var later_static_with_init : Array = [1] +@onready var later_static: Array +@onready var later_static_with_init: Array = [1] @onready var later_untyped = [1] func test(): diff --git a/modules/gdscript/tests/scripts/runtime/features/property_with_operator_assignment.gd b/modules/gdscript/tests/scripts/runtime/features/property_with_operator_assignment.gd index 3eb02816ed..14c93eb159 100644 --- a/modules/gdscript/tests/scripts/runtime/features/property_with_operator_assignment.gd +++ b/modules/gdscript/tests/scripts/runtime/features/property_with_operator_assignment.gd @@ -1,5 +1,5 @@ #GDTEST_OK -var prop : int = 0: +var prop: int = 0: get: return prop set(value): diff --git a/modules/gdscript/tests/scripts/runtime/features/use_conversion_assign_with_variant_value.gd b/modules/gdscript/tests/scripts/runtime/features/use_conversion_assign_with_variant_value.gd index efa8270526..20b024f09e 100644 --- a/modules/gdscript/tests/scripts/runtime/features/use_conversion_assign_with_variant_value.gd +++ b/modules/gdscript/tests/scripts/runtime/features/use_conversion_assign_with_variant_value.gd @@ -4,6 +4,6 @@ func test(): @warning_ignore("narrowing_conversion") var foo: int = 0.0 print(typeof(foo) == TYPE_INT) - var dict : Dictionary = {"a":0.0} + var dict: Dictionary = {"a": 0.0} foo = dict.get("a") print(typeof(foo) == TYPE_INT) -- cgit v1.2.3