summaryrefslogtreecommitdiff
path: root/test/definition
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-01-26 21:48:41 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-01-26 21:48:41 +0800
commit202bc99994db7cf79d04dd56afd1e03743e9b908 (patch)
tree9303c87de9f9f4ce10b59c1f9161da15b0bff870 /test/definition
parentf5991c0f4b90c6392d139decfecd00b25d1a2690 (diff)
downloadlua-language-server-202bc99994db7cf79d04dd56afd1e03743e9b908.zip
fix #923
Diffstat (limited to 'test/definition')
-rw-r--r--test/definition/bug.lua18
-rw-r--r--test/definition/call.lua2
2 files changed, 10 insertions, 10 deletions
diff --git a/test/definition/bug.lua b/test/definition/bug.lua
index 4a755170..77797f40 100644
--- a/test/definition/bug.lua
+++ b/test/definition/bug.lua
@@ -178,42 +178,42 @@ local A, B
function A:get1()
local <!a!> = B:get()
- return <!a!>
+ return a
end
function A:get2()
local <!a!> = B:get()
- return <!a!>
+ return a
end
function A:get3()
local <!a!> = B:get()
- return <!a!>
+ return a
end
function A:get4()
local <!a!> = B:get()
- return <!a!>
+ return a
end
function A:get5()
local <!a!> = B:get()
- return <!a!>
+ return a
end
function A:get6()
local <!a!> = B:get()
- return <!a!>
+ return a
end
function A:get7()
local <!a!> = B:get()
- return <!a!>
+ return a
end
function A:get8()
local <!a!> = B:get()
- return <!a!>
+ return a
end
function B:get()
@@ -226,7 +226,7 @@ function B:get()
<!b!> = A:get6()
<!b!> = A:get7()
<!b!> = A:get8()
- return <!b!>
+ return b
end
local <!b!> = B:get()
diff --git a/test/definition/call.lua b/test/definition/call.lua
index 42502f40..15364396 100644
--- a/test/definition/call.lua
+++ b/test/definition/call.lua
@@ -1,7 +1,7 @@
TEST [[
function f()
local <!x!>
- return <!x!>
+ return x
end
local <!y!> = f()
print(<?y?>)