GDScript: Fix lambda resolution with cyclic references
This commit is contained in:
@@ -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.
|
||||
Reference in New Issue
Block a user