blob: 67d48817e818cf11e3ba2e3784e0500409ea8b71 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 | func test():
	var type: Variant.Type
	type = Variant.Type.TYPE_INT
	print(type)
	type = TYPE_FLOAT
	print(type)
	var direction: ClockDirection
	direction = ClockDirection.CLOCKWISE
	print(direction)
	direction = COUNTERCLOCKWISE
	print(direction)
	var duper := Duper.new()
	duper.set_type(Variant.Type.TYPE_INT)
	duper.set_type(TYPE_FLOAT)
	duper.set_direction(ClockDirection.CLOCKWISE)
	duper.set_direction(COUNTERCLOCKWISE)
class Super:
	func set_type(type: Variant.Type) -> void:
		print(type)
	func set_direction(dir: ClockDirection) -> void:
		print(dir)
class Duper extends Super:
	func set_type(type: Variant.Type) -> void:
		print(type)
	func set_direction(dir: ClockDirection) -> void:
		print(dir)
 |