summaryrefslogtreecommitdiff
path: root/test/hover/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/hover/init.lua')
-rw-r--r--test/hover/init.lua14
1 files changed, 13 insertions, 1 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua
index dc9125ed..0cfb501b 100644
--- a/test/hover/init.lua
+++ b/test/hover/init.lua
@@ -439,7 +439,7 @@ t[any] = any
]]
[[
local t: {
- [integer]: integer = 1,
+ [number]: integer = 1,
}
]]
@@ -1526,3 +1526,15 @@ local t: {
a: integer = 1,
}
]]
+
+TEST [[
+---@return number
+local function f() end
+local <?u?> = f()
+print(u.x)
+]]
+[[
+local u: number {
+ x: any,
+}
+]]