summaryrefslogtreecommitdiff
path: root/test-beta/references
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-12-04 14:59:28 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-12-04 14:59:28 +0800
commit33ca6151e44074754373a1eeebbd5f53e92f4fae (patch)
tree24d541a04bf8bf5acfb9ea2bcaf0ff697029e429 /test-beta/references
parent288c114e0e6c33c47a0a59d3a4c3e3886f0c02e1 (diff)
downloadlua-language-server-33ca6151e44074754373a1eeebbd5f53e92f4fae.zip
支持多重call
Diffstat (limited to 'test-beta/references')
-rw-r--r--test-beta/references/init.lua26
1 files changed, 26 insertions, 0 deletions
diff --git a/test-beta/references/init.lua b/test-beta/references/init.lua
index 6ba1f5e4..4cd21e2b 100644
--- a/test-beta/references/init.lua
+++ b/test-beta/references/init.lua
@@ -142,8 +142,24 @@ print(obj.<?x?>)
]]
TEST [[
+local <!x!>
+local function f()
+ return <!x!>
+end
+local <?y?> = f()
+]]
+
+TEST [[
local <?x?>
local function f()
+ return <!x!>
+end
+local <!y!> = f()
+]]
+
+TEST [[
+local <!x!>
+local function f()
return function ()
return <!x!>
end
@@ -151,6 +167,16 @@ end
local <?y?> = f()()
]]
+TEST [[
+local <?x?>
+local function f()
+ return function ()
+ return <!x!>
+ end
+end
+local <!y!> = f()()
+]]
+
--TEST [[
-----@class <!Class!>
-----@type <?Class?>