diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-12-01 21:13:57 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-12-01 21:13:57 +0800 |
commit | 90b538557cb305d53a64e240185675f9fc020d94 (patch) | |
tree | c7b6e874fb425e5e86b8f8615404d145c9468e51 /test/type_inference | |
parent | 98dc39631314a2c6c788655c617c9c45d1cce51f (diff) | |
download | lua-language-server-90b538557cb305d53a64e240185675f9fc020d94.zip |
fix #826
Diffstat (limited to 'test/type_inference')
-rw-r--r-- | test/type_inference/init.lua | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 574c2c12..24c151b1 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -912,12 +912,12 @@ for _, a in ipairs(v) do end ]] -TEST 'number' [[ ----@param x number -local f - -f = function (<?x?>) end -]] +--TEST 'number' [[ +-----@param x number +--local f +-- +--f = function (<?x?>) end +--]] TEST 'integer' [[ --- @class Emit @@ -1057,3 +1057,11 @@ f { TEST 'integer' [[ for <?i?> = a, b, c do end ]] + +TEST 'number' [[ +---@param x number +function F(<?x?>) end + +---@param x boolean +function F(x) end +]] |