summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-23 20:52:10 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-23 20:52:10 +0800
commit317c856fa0f04472c7b6a4febae2b813657ca9c2 (patch)
tree534f9a3b495cce2406e9e4d18255318cdb9503c8 /test
parent4cbbe55a5944e6c4dcaea7028cab65648251951e (diff)
downloadlua-language-server-317c856fa0f04472c7b6a4febae2b813657ca9c2.zip
cleanup
Diffstat (limited to 'test')
-rw-r--r--test/type_inference/init.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index 278c7986..389fb5be 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -1833,6 +1833,13 @@ end
print(<?x?>)
]]
+TEST 'integer' [[
+---@type integer?
+local x
+
+<?x?> = x or 1
+]]
+
TEST 'integer' [=[
local x