summaryrefslogtreecommitdiff
path: root/test-beta
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-17 20:37:30 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-17 20:37:30 +0800
commit2fb6504241d12c599129922aa4043285f81cc8ef (patch)
tree25880ce97e20fb1f501a9ad2325d191bf4bafe56 /test-beta
parent2b434ab4f4a078773a27e205a60b63a9ae4efe1b (diff)
downloadlua-language-server-2fb6504241d12c599129922aa4043285f81cc8ef.zip
修正一个bug
Diffstat (limited to 'test-beta')
-rw-r--r--test-beta/hover/init.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/test-beta/hover/init.lua b/test-beta/hover/init.lua
index fb2bbf95..326d01c2 100644
--- a/test-beta/hover/init.lua
+++ b/test-beta/hover/init.lua
@@ -866,6 +866,21 @@ function a(b: table)
-> any
]]
+TEST [[
+local <?t?> = {
+ a = true
+}
+
+local t2 = {
+ [t.a] = function () end,
+}
+]]
+[[
+local t: {
+ a: boolean = true,
+}
+]]
+
TEST[[
---@class Class
local <?x?> = class()