summaryrefslogtreecommitdiff
path: root/test/hover/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-05 03:54:59 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-05 03:54:59 +0800
commit9310038417408a5c2f6c148447d951f248fce2fe (patch)
tree2b7a6e3c199608627e12144e5c48f6206facfed2 /test/hover/init.lua
parent6eba8cd590beb5ea52d880bdfe01b79e7828e5b4 (diff)
downloadlua-language-server-9310038417408a5c2f6c148447d951f248fce2fe.zip
update
Diffstat (limited to 'test/hover/init.lua')
-rw-r--r--test/hover/init.lua20
1 files changed, 3 insertions, 17 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua
index 1fced5b3..6570c38c 100644
--- a/test/hover/init.lua
+++ b/test/hover/init.lua
@@ -1676,7 +1676,7 @@ TEST [[
]]
[[
global a: {
- b: integer,
+ b: integer = 600,
}
]]
@@ -1684,7 +1684,7 @@ TEST [[
a.<?b?> = 10 * 60
]]
[[
-global a.b: integer
+global a.b: integer = 600
]]
TEST [[
@@ -1692,7 +1692,7 @@ a.<?b?>.c = 1 * 1
]]
[[
global a.b: {
- c: integer,
+ c: integer = 1,
}
]]
@@ -1745,20 +1745,6 @@ print(b.<?x?>)
[[
field A.x: unknown
]]
-TEST [[
----@class A
----@field x number
----@field y number
-
----@type A<string, number>
-local <?t?>
-]]
-[[
-local t: A<string, number> {
- x: number,
- y: number,
-}
-]]
TEST [[
---@return nil