GDScript: Check get_node() shorthand in static functions
This commit is contained in:
parent
11ea4dc466
commit
0f27c4ad80
5 changed files with 26 additions and 10 deletions
|
|
@ -0,0 +1,9 @@
|
|||
# GH-75645
|
||||
|
||||
extends Node
|
||||
|
||||
static func static_func():
|
||||
var a = $Node
|
||||
|
||||
func test():
|
||||
pass
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
GDTEST_ANALYZER_ERROR
|
||||
Cannot use shorthand "get_node()" notation ("$") in a static function.
|
||||
Loading…
Add table
Add a link
Reference in a new issue