Fix GDScript code style regarding colon

This commit is contained in:
Danil Alexeev
2023-03-03 17:42:32 +03:00
parent 61d2c85511
commit ea5fd3d732
28 changed files with 74 additions and 72 deletions

View File

@@ -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():

View File

@@ -1,5 +1,5 @@
#GDTEST_OK
var prop : int = 0:
var prop: int = 0:
get:
return prop
set(value):

View File

@@ -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)