mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Merge pull request #78552 from dalexeev/gds-check-get-node-in-static-func
GDScript: Check `get_node()` shorthand in static functions
This commit is contained in:
@@ -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.
|
||||
Reference in New Issue
Block a user