godot/modules/gdscript/tests/scripts/lsp/local_variables.gd
Rémi Verschelde 7d03b1de0b
Style: Trim trailing whitespace and ensure newline at EOF
Found by apply the file_format checks again via #91597.
2024-05-08 10:12:46 +02:00

26 lines
444 B
GDScript

extends Node
var member := 2
# ^^^^^^ member -> member
func test_member() -> void:
var test := member + 42
# | | ^^^^^^ -> member
# ^^^^ test -> test
test += 3
#<^^ -> test
member += 5
#<^^^^ -> member
test = return_arg(test)
# | ^^^^ -> test
#<^^ -> test
print(test)
# ^^^^ -> test
func return_arg(arg: int) -> int:
# ^^^ arg -> arg
arg += 2
#<^ -> arg
return arg
# ^^^ -> arg