GDScript: Fix lambda resolution with cyclic references

This commit is contained in:
Danil Alexeev
2023-08-23 12:37:18 +03:00
parent 6758a7f8c0
commit 89429b0273
10 changed files with 127 additions and 31 deletions
@@ -0,0 +1,5 @@
var f = (func (_a): return 0).call(x)
var x = f
func test():
pass
@@ -0,0 +1,2 @@
GDTEST_ANALYZER_ERROR
Could not resolve member "f": Cyclic reference.
@@ -0,0 +1,5 @@
var f = func (_a = x): return 0
var x = f
func test():
pass
@@ -0,0 +1,2 @@
GDTEST_ANALYZER_ERROR
Could not resolve member "f": Cyclic reference.