initial commit, 4.5 stable
Some checks failed
🔗 GHA / 📊 Static checks (push) Has been cancelled
🔗 GHA / 🤖 Android (push) Has been cancelled
🔗 GHA / 🍏 iOS (push) Has been cancelled
🔗 GHA / 🐧 Linux (push) Has been cancelled
🔗 GHA / 🍎 macOS (push) Has been cancelled
🔗 GHA / 🏁 Windows (push) Has been cancelled
🔗 GHA / 🌐 Web (push) Has been cancelled
Some checks failed
🔗 GHA / 📊 Static checks (push) Has been cancelled
🔗 GHA / 🤖 Android (push) Has been cancelled
🔗 GHA / 🍏 iOS (push) Has been cancelled
🔗 GHA / 🐧 Linux (push) Has been cancelled
🔗 GHA / 🍎 macOS (push) Has been cancelled
🔗 GHA / 🏁 Windows (push) Has been cancelled
🔗 GHA / 🌐 Web (push) Has been cancelled
This commit is contained in:
25
modules/gdscript/tests/scripts/lsp/local_variables.gd
Normal file
25
modules/gdscript/tests/scripts/lsp/local_variables.gd
Normal file
@@ -0,0 +1,25 @@
|
||||
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
|
Reference in New Issue
Block a user