summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/parser/features/super_class_check.gd
blob: edfc45a8d8f6613cccace0ec7307f49cc00b5005 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# https://github.com/godotengine/godot/issues/71994

func test():
	pass

class A extends RefCounted:
	pass

class B extends A:
	# Parsing `duplicate()` here would throw this error:
	# Parse Error: The function signature doesn't match the parent. Parent signature is "duplicate(bool = default) -> Resource".
	func duplicate():
		pass