551ceb590b
Inline getters & setters are now FunctionNodes. Their names are set in the parser, not in the compiler. GDScript-Analyzer will now run through getter and setter. Also report wrong type or signature errors regarding getset properties. Added GDScript tests for getters and setters. #53102
12 lines
159 B
GDScript
12 lines
159 B
GDScript
var _prop : int
|
|
|
|
# Setter function has wrong argument type.
|
|
var prop : String:
|
|
set = set_prop
|
|
|
|
func set_prop(value : int):
|
|
_prop = value
|
|
|
|
func test():
|
|
pass
|