diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-28 21:13:08 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-28 21:13:08 +0800 |
commit | a525372a28c87e6e759ae502aca3b1573a35155a (patch) | |
tree | e9424a88680ef6ac0afb4935e759a241c633802f /test | |
parent | 08b9dd387a9b912c68749018b7dfe3c1df7094d5 (diff) | |
download | lua-language-server-a525372a28c87e6e759ae502aca3b1573a35155a.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 61677cea..a05749b8 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -3209,3 +3209,12 @@ local n print(<?n?>) ]] + +TEST 'integer' [[ +---@type integer? +local n +if true then + n = 0 +end +local <?x?> = n or 0 +]] |