1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Add return type for GDScript getters

This commit is contained in:
ocean (they/them)
2023-02-15 16:00:22 -05:00
parent f2aae8fa5c
commit 94dfac8da7
3 changed files with 12 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
var Value:int = 8 :
get:
return Value
set(v):
Value = v
func test():
var f:float = Value
print(int(f))

View File

@@ -0,0 +1,2 @@
GDTEST_OK
8