We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
any
1 parent 5f48be0 commit 2dd1bdbCopy full SHA for 2dd1bdb
script/core/hover/name.lua
@@ -20,6 +20,9 @@ local function asField(source, oop)
20
local class
21
if source.node.type ~= 'getglobal' then
22
class = vm.getInfer(source.node):viewClass()
23
+ if class == 'any' then
24
+ class = nil
25
+ end
26
end
27
local node = class
28
or buildName(source.node, false)
test/hover/init.lua
@@ -1929,3 +1929,13 @@ local <?x?>
1929
[[
1930
local x: ` x | y `|`123 ????`
1931
]]
1932
+
1933
+TEST [[
1934
+---@type any
1935
+local x
1936
1937
+print(x.<?y?>)
1938
+]]
1939
+[[
1940
+(field) x.y: unknown
1941
0 commit comments