diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-10-26 20:56:42 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-10-26 20:56:42 +0800 |
commit | 6a237a482e05088fcd07247310aa0e895235c773 (patch) | |
tree | 56f465720888d4db1cce4a9d3c7253624b70a457 /test-beta/hover/init.lua | |
parent | 0b708180509007bfb6c54d8112f85d5f85ec9210 (diff) | |
download | lua-language-server-6a237a482e05088fcd07247310aa0e895235c773.zip |
type.function
Diffstat (limited to 'test-beta/hover/init.lua')
-rw-r--r-- | test-beta/hover/init.lua | 48 |
1 files changed, 20 insertions, 28 deletions
diff --git a/test-beta/hover/init.lua b/test-beta/hover/init.lua index 8845c414..5f1d869c 100644 --- a/test-beta/hover/init.lua +++ b/test-beta/hover/init.lua @@ -1105,44 +1105,36 @@ local <?x?> local x: table<ClassA, ClassB> ]] -TEST [[ ----@type table<ClassA, ClassB> -local t -for _, <?x?> in pairs(t) do -end -]] -[[ -local x: *ClassB -]] +--TEST [[ +-----@type table<ClassA, ClassB> +--local t +--for _, <?x?> in pairs(t) do +--end +--]] +--[[ +--local x: *ClassB +--]] -TEST [[ ----@type table<ClassA, ClassB> -local t -for <?k?>, v in pairs(t) do -end -]] -[[ -local k: *ClassA -]] +--TEST [[ +-----@type table<ClassA, ClassB> +--local t +--for <?k?>, v in pairs(t) do +--end +--]] +--[[ +--local k: *ClassA +--]] TEST [[ ---@type fun(x: number, y: number):boolean local <?f?> ]] [[ -function f(x: number, y: number) +function (x: number, y: number) -> boolean ]] -TEST [[ ----@type fun(x: number, y: number):boolean -local f -f(<?a?>) -]] -[[ -global a: number -]] - +do return end TEST [[ ---@type fun(x: number, y: number):boolean local f |