godot/modules/gdscript/tests/scripts/analyzer/warnings/confusable_local_declaration.gd

7 lines
67 B
GDScript

func test():
if true:
var a = 1
print(a)
var a = 2
print(a)