summaryrefslogtreecommitdiff
path: root/test-beta
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-10-25 19:56:25 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-10-25 19:56:25 +0800
commit8d88695d3897384cdee001f49b702a1a3586597b (patch)
treec42d0dee6f7762603c4d84bc65629835fdb6c8c8 /test-beta
parent7e6bb85af1ffccc01f7504cd427fc8123d3179d0 (diff)
downloadlua-language-server-8d88695d3897384cdee001f49b702a1a3586597b.zip
更新
Diffstat (limited to 'test-beta')
-rw-r--r--test-beta/hover/init.lua17
1 files changed, 9 insertions, 8 deletions
diff --git a/test-beta/hover/init.lua b/test-beta/hover/init.lua
index 182474e0..d1181771 100644
--- a/test-beta/hover/init.lua
+++ b/test-beta/hover/init.lua
@@ -847,7 +847,7 @@ TEST[[
local <?x?> = class()
]]
[[
-local x: Class {}
+local x: Class
]]
TEST[[
@@ -855,7 +855,7 @@ TEST[[
<?x?> = class()
]]
[[
-global x: Class {}
+global x: Class
]]
TEST[[
@@ -865,7 +865,7 @@ local t = {
}
]]
[[
-field x: Class {}
+field x: Class
]]
TEST[[
@@ -873,7 +873,7 @@ TEST[[
local <?x?> = class()
]]
[[
-local x: Class {}
+local x: Class
]]
TEST[[
@@ -881,7 +881,7 @@ TEST[[
<?x?> = class()
]]
[[
-global x: Class {}
+global x: Class
]]
TEST[[
@@ -891,7 +891,7 @@ local t = {
}
]]
[[
-field x: Class {}
+field x: Class
]]
TEST[[
@@ -899,7 +899,7 @@ TEST[[
local <?x?> = class()
]]
[[
-local x: A|B|C {}
+local x: A|B|C
]]
TEST[[
@@ -910,10 +910,11 @@ local <?x?> = {
]]
[[
local x: Class {
- b: number = 1,
+ b: integer = 1,
}
]]
+do return end
TEST [[
---@class Class
local mt = {}