summaryrefslogtreecommitdiff
path: root/test-beta/references/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-11-30 00:52:49 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-11-30 00:52:49 +0800
commit27a141bb779c3e048b17b2d49071ac1f072662af (patch)
tree8354d44d13b51737b02105006cf36ece569d5d8f /test-beta/references/init.lua
parentb5d452f3cc7315940e860a21c9bb15673e544d9c (diff)
downloadlua-language-server-27a141bb779c3e048b17b2d49071ac1f072662af.zip
暂存
Diffstat (limited to 'test-beta/references/init.lua')
-rw-r--r--test-beta/references/init.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/test-beta/references/init.lua b/test-beta/references/init.lua
index 896997b6..6ba1f5e4 100644
--- a/test-beta/references/init.lua
+++ b/test-beta/references/init.lua
@@ -141,6 +141,16 @@ local obj = setmetatable({}, mt)
print(obj.<?x?>)
]]
+TEST [[
+local <?x?>
+local function f()
+ return function ()
+ return <!x!>
+ end
+end
+local <?y?> = f()()
+]]
+
--TEST [[
-----@class <!Class!>
-----@type <?Class?>