You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
GDScript: Add CONFUSABLE_CAPTURE_REASSIGNMENT warning
This commit is contained in:
@@ -9,6 +9,7 @@ func four_parameters(_a, callable : Callable, b=func(): print(10)):
|
||||
|
||||
func test():
|
||||
var v
|
||||
@warning_ignore("confusable_capture_reassignment")
|
||||
v=func():v=1
|
||||
if true: v=1
|
||||
print(v)
|
||||
|
||||
Reference in New Issue
Block a user