GDScript: Fix non-static call is allowed in static var lambda body

This commit is contained in:
Danil Alexeev
2023-10-17 12:46:41 +03:00
parent f333e4acf5
commit 7f4721a941
11 changed files with 95 additions and 17 deletions
+1 -1
View File
@@ -838,7 +838,7 @@ public:
HashMap<StringName, int> parameters_indices;
TypeNode *return_type = nullptr;
SuiteNode *body = nullptr;
bool is_static = false;
bool is_static = false; // For lambdas it's determined in the analyzer.
bool is_coroutine = false;
Variant rpc_config;
MethodInfo info;