summaryrefslogtreecommitdiff
path: root/modules/gdscript/tests/scripts/analyzer/features/warning_ignore_annotation.gd
blob: 292db30bcd49175efc79139a53fd3d709e541610 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
@warning_ignore("unused_private_class_variable")
var _unused = 2

@warning_ignore("unused_variable")
func test():
	print("test")
	var unused = 3

	@warning_ignore("redundant_await")
	print(await regular_func())

	print("done")

func regular_func() -> int:
	return 0