diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-24 05:46:51 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-24 05:46:51 +0800 |
commit | f8551a93927ab782ddd58397f86580dc6301a4be (patch) | |
tree | cba5bb076c6b1d360ebf5306cebb491f28a40c8d /test | |
parent | b390ad6411478c2cccadd9750b01971052a7e2c4 (diff) | |
download | lua-language-server-f8551a93927ab782ddd58397f86580dc6301a4be.zip |
`setlocal` can be marked by `---@type`
Diffstat (limited to 'test')
-rw-r--r-- | test/type_inference/init.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 974e3f73..19f868f4 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -2056,3 +2056,10 @@ local iter for <?x?> in iter do end ]] + +TEST 'integer' [[ +local x + +---@type integer +<?x?> = XXX +]] |