GDScript: Add CONFUSABLE_CAPTURE_REASSIGNMENT warning

This commit is contained in:
Danil Alexeev 2024-06-28 09:35:04 +03:00
parent cae2f853dc
commit 68898dbcc9
No known key found for this signature in database
GPG key ID: 124453E157DA8DC7
7 changed files with 88 additions and 0 deletions

View file

@ -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)