diff options
author | Danil Alexeev <danil@alexeev.xyz> | 2023-03-03 17:42:32 +0300 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-03-13 14:42:27 +0100 |
commit | f4ea9df0f4ddfc5b46419710e0d4ff02c8b0260f (patch) | |
tree | 68550a1846cc63980301e6d4889b49c9955d1c40 /modules/gdscript/tests/scripts/runtime/features | |
parent | acdb1bdbd7aed6442e840074b3a5c09202be6660 (diff) |
Fix GDScript code style regarding colon
(cherry picked from commit ea5fd3d732a85029e8372425904971ad26153ff1)
Diffstat (limited to 'modules/gdscript/tests/scripts/runtime/features')
3 files changed, 4 insertions, 4 deletions
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) |