2023-07-28 15:06:08 +00:00
|
|
|
extends Node
|
|
|
|
|
|
|
|
var member := 2
|
|
|
|
# ^^^^^^ member -> member
|
|
|
|
|
|
|
|
func test_member() -> void:
|
|
|
|
var test := member + 42
|
|
|
|
# | | ^^^^^^ -> member
|
|
|
|
# ^^^^ test -> test
|
|
|
|
test += 3
|
|
|
|
#<^^ -> test
|
2024-05-08 08:04:47 +00:00
|
|
|
member += 5
|
2023-07-28 15:06:08 +00:00
|
|
|
#<^^^^ -> member
|
|
|
|
test = return_arg(test)
|
|
|
|
# | ^^^^ -> test
|
|
|
|
#<^^ -> test
|
|
|
|
print(test)
|
|
|
|
# ^^^^ -> test
|
|
|
|
|
|
|
|
func return_arg(arg: int) -> int:
|
|
|
|
# ^^^ arg -> arg
|
|
|
|
arg += 2
|
|
|
|
#<^ -> arg
|
|
|
|
return arg
|
2024-05-08 08:04:47 +00:00
|
|
|
# ^^^ -> arg
|