GDScript: Allow empty parentheses for property getter declaration
This commit is contained in:
parent
c5291a3555
commit
668ba2d1a5
3 changed files with 13 additions and 3 deletions
|
|
@ -6,6 +6,9 @@ var property:
|
|||
set(value):
|
||||
_backing = value - 1000
|
||||
|
||||
var property_2:
|
||||
get(): # Allow parentheses.
|
||||
return 123
|
||||
|
||||
func test():
|
||||
print("Not using self:")
|
||||
|
|
@ -35,3 +38,5 @@ func test():
|
|||
self.property = 5000
|
||||
print(self.property)
|
||||
print(self._backing)
|
||||
|
||||
print(property_2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue