You've already forked godot
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:
@@ -0,0 +1,9 @@
|
||||
var Value:int = 8 :
|
||||
get:
|
||||
return Value
|
||||
set(v):
|
||||
Value = v
|
||||
|
||||
func test():
|
||||
var f:float = Value
|
||||
print(int(f))
|
||||
@@ -0,0 +1,2 @@
|
||||
GDTEST_OK
|
||||
8
|
||||
Reference in New Issue
Block a user