summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/analyzer/errors/super_nonexistent_base_method.gd
blob: 722a8fcdb7c18d02036edf53ad39bbd26205377a (plain)
1
2
3
4
5
6
7
8
9
10
11
# `class` extends RefCounted by default.
class Say:
	func say():
		super()
		print("say something")


func test():
	# RefCounted doesn't have a `say()` method, so the `super()` call in the method
	# definition will cause a run-time error.
	Say.new().say()