summaryrefslogtreecommitdiff
path: root/modules/gdscript/tests/scripts/analyzer/features/property_functions.gd
blob: 1706087f8240f509a9f269c545ccea5ebdca8457 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
var _prop = 1
var prop:
	get = get_prop, set = set_prop

func get_prop():
	return _prop

func set_prop(value):
	_prop = value

func test():
	print(prop)

	prop = 2

	print(prop)