diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-01-09 20:20:30 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2023-01-09 20:20:30 +0800 |
commit | e79f87e500b745230ffda5ed993ddc5e2c873b2d (patch) | |
tree | 00313cff48f45b05917955bb28b7240c434fbf13 /test | |
parent | 6f889136264e39a9c47e8cce569274414c9b4a50 (diff) | |
download | lua-language-server-e79f87e500b745230ffda5ed993ddc5e2c873b2d.zip |
fix
Diffstat (limited to 'test')
-rw-r--r-- | test/type_inference/init.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 7cfc7fe9..c8619d27 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -4166,3 +4166,12 @@ X = Y print(<?X?>) ]] + +TEST 'number' [[ +---@type number +local t + +if xxx == <?t?> then + print(t) +end +]] |